Documentation ¶
Index ¶
- Constants
- type Pref
- func (p *Pref) Delete(prefName string) error
- func (p *Pref) Get(prefName string) (interface{}, error)
- func (p *Pref) GetArray(prefName string) ([]string, error)
- func (p *Pref) GetBool(prefName string) (bool, error)
- func (p *Pref) GetInt(prefName string) (int, error)
- func (p *Pref) GetString(prefName string) (string, error)
- func (p *Pref) Set(prefName string, prefValue interface{}) error
- func (p *Pref) SetArray(prefName string, prefValue []string) error
- func (p *Pref) SetBool(prefName string, value bool) error
- func (p *Pref) SetInt(prefName string, value int) error
- func (p *Pref) SetString(prefName string, value string) error
- type PrefInterface
Constants ¶
View Source
const BundleID = "com.grahamgilbert.crypt"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pref ¶
func (*Pref) Set ¶
Set sets the value of a preference Why use defaults over cgo? It's simpler, and more reliable.
type PrefInterface ¶
type PrefInterface interface { Delete(prefName string) error GetString(prefName string) (string, error) GetBool(prefName string) (bool, error) GetInt(prefName string) (int, error) GetArray(prefName string) ([]string, error) SetString(prefName string, value string) error SetBool(prefName string, value bool) error SetInt(prefName string, value int) error SetArray(prefName string, prefValue []string) error Get(prefName string) (interface{}, error) Set(prefName string, value interface{}) error }
Click to show internal directories.
Click to hide internal directories.