Documentation
¶
Index ¶
- type Config
- func (p *Config) AddConfig(textConfig string, fallbackConfig *Config) *Config
- func (p *Config) AddConfigWithTextFallback(config *Config, textFallback string) *Config
- func (p *Config) Copy(fallback ...*Config) *Config
- func (p *Config) GetBoolean(path string, defaultVal ...bool) bool
- func (p *Config) GetBooleanList(path string) []bool
- func (p *Config) GetByteList(path string) []byte
- func (p *Config) GetByteSize(path string) *big.Int
- func (p *Config) GetConfig(path string) *Config
- func (p *Config) GetFloat32(path string, defaultVal ...float32) float32
- func (p *Config) GetFloat32List(path string) []float32
- func (p *Config) GetFloat64(path string, defaultVal ...float64) float64
- func (p *Config) GetFloat64List(path string) []float64
- func (p *Config) GetInt32(path string, defaultVal ...int32) int32
- func (p *Config) GetInt32List(path string) []int32
- func (p *Config) GetInt64(path string, defaultVal ...int64) int64
- func (p *Config) GetInt64List(path string) []int64
- func (p *Config) GetNode(path string) *hocon.HoconValue
- func (p *Config) GetString(path string, defaultVal ...string) string
- func (p *Config) GetStringList(path string) []string
- func (p *Config) GetTimeDuration(path string, defaultVal ...time.Duration) time.Duration
- func (p *Config) GetTimeDurationInfiniteNotAllowed(path string, defaultVal ...time.Duration) time.Duration
- func (p *Config) GetValue(path string) *hocon.HoconValue
- func (p *Config) HasPath(path string) bool
- func (p *Config) IsArray(path string) bool
- func (p *Config) IsEmpty() bool
- func (p *Config) IsObject(path string) bool
- func (p *Config) Root() *hocon.HoconValue
- func (p Config) String() string
- func (p *Config) WithFallback(fallback *Config) *Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func FromObject ¶
func FromObject(obj interface{}) *Config
func LoadConfig ¶
func NewConfigFromConfig ¶
func NewConfigFromRoot ¶
func ParseString ¶
func ParseString(text string, includeCallback ...hocon.IncludeCallback) *Config
func (*Config) AddConfigWithTextFallback ¶
func (*Config) GetBooleanList ¶
func (*Config) GetByteList ¶
func (*Config) GetFloat32List ¶
func (*Config) GetFloat64List ¶
func (*Config) GetInt32List ¶
func (*Config) GetInt64List ¶
func (*Config) GetStringList ¶
func (*Config) GetTimeDuration ¶
func (*Config) GetTimeDurationInfiniteNotAllowed ¶
func (*Config) Root ¶
func (p *Config) Root() *hocon.HoconValue
func (*Config) WithFallback ¶
Click to show internal directories.
Click to hide internal directories.