config

package
v0.0.0-...-1d7c9fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Client   string `json:"client"`
	Instance string `json:"instance"`
}

type XDGConfig

type XDGConfig struct {
	// contains filtered or unexported fields
}

XDGConfig manage the configurations by saving them into the host file system following the XDGConfig specification.

func NewXDGConfig

func NewXDGConfig(appName string) *XDGConfig

NewXDGConfig instantiate a new XDGConfig.

func (*XDGConfig) Dir

func (c *XDGConfig) Dir() string

func (*XDGConfig) EnsureDirExists

func (c *XDGConfig) EnsureDirExists() error

func (*XDGConfig) Read

func (c *XDGConfig) Read() (*Config, error)

func (*XDGConfig) Save

func (c *XDGConfig) Save(cfg *Config) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL