Documentation
¶
Index ¶
- Variables
- func Bool(key string, def ...bool) bool
- func Bytes(key string, def ...[]byte) ([]byte, error)
- func Duration(key string, def ...time.Duration) time.Duration
- func Float64(key string, def ...float64) float64
- func Get(key string) interface{}
- func Int(key string, def ...int) int
- func IntSlice(key string, def ...[]int) []int
- func Interface(key string, def ...interface{}) interface{}
- func Load() error
- func Scan(key string, v interface{}) error
- func Set(key string, value interface{})
- func String(key string, def ...string) string
- func StringMap(key string, def ...map[string]interface{}) map[string]interface{}
- func StringMapStringSlice(key string, def ...map[string][]string) map[string][]string
- func StringSlice(key string, def ...[]string) []string
- type Config
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultConfig = New()
)
Functions ¶
func StringMapStringSlice ¶
func StringSlice ¶
Types ¶
type Config ¶
type Config interface { Load() error Get(string) interface{} Set(string, interface{}) Sub(string) Config Data() map[string]interface{} SetData(map[string]interface{}) Scan(string, interface{}) error Bytes(string, ...[]byte) ([]byte, error) Int(string, ...int) int IntSlice(string, ...[]int) []int Float64(string, ...float64) float64 Bool(string, ...bool) bool String(string, ...string) string StringSlice(string, ...[]string) []string StringMap(string, ...map[string]interface{}) map[string]interface{} StringMapStringSlice(string, ...map[string][]string) map[string][]string Duration(string, ...time.Duration) time.Duration Interface(string, ...interface{}) interface{} }
Click to show internal directories.
Click to hide internal directories.