code: func LoadDir(dirname string) (*Plugin, error) {
  	data, err := ioutil.ReadFile(filepath.Join(dirname, pluginFileName))
  	if err != nil {
  		return nil, err
  	}
  
  	plug := &Plugin{Dir: dirname}
  	if err := yaml.Unmarshal(data, &plug.Metadata); err != nil {
  		return nil, err
  	}
  	return plug, nil
  }
docs: // LoadDir loads a plugin from the given directory.