config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigPath

func DefaultConfigPath() string

Types

type Config

type Config struct {
	Font        FontConfig   `toml:"font"`
	Credentials []Credential `toml:"users"`
}

func LoadConfig

func LoadConfig(configPath string) (*Config, error)

func (*Config) Save

func (config *Config) Save(configPath string) error

type Credential

type Credential struct {
	Username string `toml:"username"`
	Token    string `toml:"token"`
}

type FontConfig added in v0.0.11

type FontConfig struct {
	Path string `toml:"path"`
	Size int    `toml:"size"`
}

Jump to

Keyboard shortcuts

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