Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type YamlPersistence ¶
type YamlPersistence struct {
// contains filtered or unexported fields
}
YamlPersistence handles persisting user config to disk as a YAML file
func New ¶
func New(name string) (*YamlPersistence, error)
func (*YamlPersistence) Get ¶
func (p *YamlPersistence) Get() *userconfig.UserConfig
func (*YamlPersistence) Save ¶
func (p *YamlPersistence) Save() error
This saves the user part of the config
func (*YamlPersistence) Set ¶
func (p *YamlPersistence) Set(config *userconfig.UserConfig) error
Set updates and saves the config
Click to show internal directories.
Click to hide internal directories.