code: func LoadConf(file string) (*Config, error) {
  	config := &Config{}
  	if file == "" {
  		return config, nil
  	}
  	f, err := os.Open(file)
  	if err != nil {
  		return nil, fmt.Errorf("could not open config file %q: %v", file, err)
  	}
  	defer f.Close()
  
  	dec := json.NewDecoder(f)
  	err = dec.Decode(config)
  	if err != nil {
  		return nil, fmt.Errorf("could not parse config file %q: %v", file, err)
  	}
  	return config, nil
  }
docs: // Load reads a JSON-encoded config contained in the given file. A zero value
  // config is returned if the filename is empty.