runtimeconfig

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigPath

func DefaultConfigPath() (string, error)

func ResolveBool

func ResolveBool(key string, defaults map[string]string) bool

func ResolveString

func ResolveString(key string, defaults map[string]string) string

func Save

func Save(config FileConfig) error

Types

type FileConfig

type FileConfig struct {
	Path   string
	Values map[string]string
}

func EnsureToken

func EnsureToken(config FileConfig, key string) (FileConfig, string, error)

func Load

func Load(path string) (FileConfig, error)

Jump to

Keyboard shortcuts

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