config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigFileName = "config.json"

Variables

View Source
var (
	DefaultConfigDir      = os.ExpandEnv("$HOME/.config/savvy")
	DefaultConfigFilePath = filepath.Join(DefaultConfigDir, DefaultConfigFileName)
)

Functions

func APIHost

func APIHost() string

Types

type Config

type Config struct {
	Token string
}

func LoadFromFile

func LoadFromFile() (*Config, error)

func (*Config) Save

func (c *Config) Save() error

Jump to

Keyboard shortcuts

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