Documentation
¶
Index ¶
Constants ¶
View Source
const ( PathTypeFile = 1 PathTypePath = 2 )
Variables ¶
This section is empty.
Functions ¶
func InitDefault ¶
func InitDefault() error
func RegisterDecoder ¶
Types ¶
type Config ¶
type Config interface {
GetFloat64(key string) float64
GetFloat64OrDefault(key string, def float64) float64
GetBool(key string) bool
GetBoolOrDefault(key string, def bool) bool
GetString(key string) string
GetStringOrDefault(key string, def string) string
GetInt(key string) int
GetIntOrDefault(key string, def int) int
GetIntSlice(key string) []int
GetIntSliceOrDefault(key string, def []int) []int
GetStringMap(key string) map[string]interface{}
GetStringMapOrDefault(key string, def map[string]interface{}) map[string]interface{}
GetStringMapString(key string) map[string]string
GetStringMapStringOrDefault(key string, def map[string]string) map[string]string
GetStringSlice(key string) []string
GetStringSliceOrDefault(key string, def []string) []string
GetTime(key string) time.Time
GetTimeOrDefault(key string, def time.Time) time.Time
GetDuration(key string) time.Duration
GetDurationOrDefault(key string, def time.Duration) time.Duration
Get(key string) interface{}
}
Click to show internal directories.
Click to hide internal directories.