code: func validateConfig(path string) error {
  	dt, err := os.Open(filepath.Join(path, "config.json"))
  	if err != nil {
  		return err
  	}
  
  	m := types.PluginConfig{}
  	err = json.NewDecoder(dt).Decode(&m)
  	dt.Close()
  
  	return err
  }
docs: // validateConfig ensures that a valid config.json is available in the given path