config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPath

func DefaultPath() string

func Get

func Get(path, key string) (string, error)

func Save

func Save(path string, cfg *Config) error

func Set

func Set(path, key, value string) error

Types

type Config

type Config struct {
	Domain string `koanf:"domain" yaml:"domain"`
	Token  string `koanf:"token" yaml:"token"`
}

func Load

func Load(path string) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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