config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeDefaults

func MergeDefaults[T any](target *T, defaults T)

func NormalizePath

func NormalizePath(path string) string

func Reset

func Reset()

func Resolve

func Resolve[T any](c *Config, path string, defaults T) (T, bool, error)

Types

type Config

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

func Load

func Load() (*Config, error)

func (*Config) Bind

func (c *Config) Bind(path string, target any) (bool, error)

func (*Config) Enabled

func (c *Config) Enabled(path string) bool

func (*Config) Has

func (c *Config) Has(path string) bool

Jump to

Keyboard shortcuts

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