configx

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPath = errors.New("invalid path")
)

Functions

func GetDefaultAppConfigRoot

func GetDefaultAppConfigRoot() (roots []string, err error)

func GetWorkDirectory

func GetWorkDirectory() (dir string, err error)

func GetWorkDirectoryKey

func GetWorkDirectoryKey(workDir string) (key string, err error)

func GetWorkDirectoryKeyEx

func GetWorkDirectoryKeyEx(workDir string, trimPrefix []string) (key string, err error)

func Load

func Load(configName string, cfg interface{}) (configFileUsed string, err error)

func LoadOnConfigPath

func LoadOnConfigPath(configName string, configPaths []string, cfg interface{}) (configFileUsed string, err error)

Types

type ZjzConfig

type ZjzConfig struct {
	ConfigRoot       string   `yaml:"config_root"`
	LocalSuffix      string   `yaml:"local_suffix"`
	TrimAppKeyPrefix []string `yaml:"trim_app_key_prefix"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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