code: func NewPreferences() (*Preferences, error) {
  	prefs := &Preferences{
  		Core: Core{
  			RegistryURI:        registryURI,
  			ManifestURI:        manifestURI,
  			GatekeeperAddress:  gatekeeperAddress,
  			Context:            true,
  			EnableHints:        true,
  			EnableProgress:     true,
  			EnableCheckUpdates: true,
  			EnableColors:       true,
  		},
  	}
  
  	filePath, _ := RcPath()
  	_, err := os.Stat(filePath)
  	if os.IsNotExist(err) {
  		return prefs, nil
  	}
  
  	if err != nil {
  		return prefs, err
  	}
  
  	err = ini.MapTo(prefs, filePath)
  	return prefs, err
  }
docs: // NewPreferences returns a new instance of preferences struct