config

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TagName = "scfg"

TagName is the tag name used in config struct. The Tag contains two value. "config_key,default=def_value(optional)"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigProvider

type ConfigProvider interface {
	Init() error
	GetString(key string) string
	GetInt(key string) int64
	GetBool(key string) bool
	GetStringE(key string) (string, bool)
	GetIntE(key string) (int64, bool)
	GetBoolE(key string) (bool, bool)
}

type ConfigUnmarshaler

type ConfigUnmarshaler interface {
	ConfigProvider
	Unmarshal(val interface{}) error
	UnmarshalWithPrefix(prefix string, val interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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