code: func GetConfigFromDir(dir string) (*Config, error) {
  	subcfg := newConfig()
  	if valid, err := validDir(dir); err != nil {
  		return nil, err
  	} else if !valid {
  		return subcfg, nil
  	}
  	if err := readConfigDir(subcfg, dir); err != nil {
  		return nil, err
  	}
  	return subcfg, nil
  }
docs: // GetConfigFromDir gets the Config instance with configuration taken
  // from given directory.