Documentation ¶
Index ¶
- func ConfigLogger(isDebug bool)
- type MapParser
- type Properties
- func (p *Properties) Get(k string) (string, bool)
- func (p *Properties) GetBoolWithDefault(k, def string) bool
- func (p *Properties) GetFloat64WithDefault(k, def string) float64
- func (p *Properties) GetInt(k string) int
- func (p *Properties) GetInt64(k string) int64
- func (p *Properties) GetInt64WithDefault(k, def string) int64
- func (p *Properties) GetIntWithDefault(k, def string) int
- func (p *Properties) GetPropMap() map[string]string
- func (p *Properties) GetStr(k string) string
- func (p *Properties) GetStrList(k, regex string) []string
- func (p *Properties) GetTimeDuration(k string) time.Duration
- func (p *Properties) GetTimeDurationWithDefault(k, def string) time.Duration
- func (p *Properties) GetWithDefault(k, d string) string
- func (p *Properties) Load(filePath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigLogger ¶
func ConfigLogger(isDebug bool)
Types ¶
type MapParser ¶
type MapParser struct {
// contains filtered or unexported fields
}
func NewMapParser ¶
func NewMapParser() *MapParser
type Properties ¶
type Properties struct {
// contains filtered or unexported fields
}
func NewProperties ¶
func NewProperties() *Properties
func (*Properties) GetBoolWithDefault ¶
func (p *Properties) GetBoolWithDefault(k, def string) bool
func (*Properties) GetFloat64WithDefault ¶
func (p *Properties) GetFloat64WithDefault(k, def string) float64
func (*Properties) GetInt ¶
func (p *Properties) GetInt(k string) int
func (*Properties) GetInt64 ¶
func (p *Properties) GetInt64(k string) int64
func (*Properties) GetInt64WithDefault ¶
func (p *Properties) GetInt64WithDefault(k, def string) int64
func (*Properties) GetIntWithDefault ¶
func (p *Properties) GetIntWithDefault(k, def string) int
func (*Properties) GetPropMap ¶
func (p *Properties) GetPropMap() map[string]string
func (*Properties) GetStrList ¶
func (p *Properties) GetStrList(k, regex string) []string
func (*Properties) GetTimeDuration ¶
func (p *Properties) GetTimeDuration(k string) time.Duration
func (*Properties) GetTimeDurationWithDefault ¶
func (p *Properties) GetTimeDurationWithDefault(k, def string) time.Duration
func (*Properties) GetWithDefault ¶
func (p *Properties) GetWithDefault(k, d string) string
func (*Properties) Load ¶
func (p *Properties) Load(filePath string)
Click to show internal directories.
Click to hide internal directories.