Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandGlobs added in v0.13.0

func ExpandGlobs(patterns []string) ([]string, error)

ExpandGlobs expands semicolon-separated glob patterns into a list of existing file paths. Patterns support ~ for home directory expansion.

func LoadSection added in v0.13.0

func LoadSection(patterns []string, section string, target any) error

LoadSection reads YAML config files matching the given glob patterns, extracts the named section, and decodes the last match into target. Later files replace earlier ones entirely (last file wins).

func SystemStateDir added in v0.35.0

func SystemStateDir() (string, error)

SystemStateDir is the native location for Epithet service state. It does not create directories or depend on a user's agent profile. Explicit storage paths bypass this default, including on operating systems without a known convention.

Types

This section is empty.

Jump to

Keyboard shortcuts

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