Documentation
¶
Index ¶
- func Flatten(prefix string, src map[string]interface{}, dest map[string]interface{})
- type Configuration
- func (c *Configuration) Get(key string) (interface{}, bool)
- func (c *Configuration) GetBool(key ...string) bool
- func (c *Configuration) GetBoolWithDefault(key string, dflt bool) bool
- func (c *Configuration) GetInt(key string) (int, bool)
- func (c *Configuration) GetSliceMapString(key string) ([]map[string]string, bool)
- func (c *Configuration) GetString(key string) (string, bool)
- func (c *Configuration) GetStringOrDefault(key ...string) string
- func (c *Configuration) GetStringSlice(key string) ([]string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Configuration
func NewWithRequestOptions ¶
func NewWithRequestOptions(options map[string]interface{}) *Configuration
func (*Configuration) Get ¶
func (c *Configuration) Get(key string) (interface{}, bool)
func (*Configuration) GetBool ¶
func (c *Configuration) GetBool(key ...string) bool
func (*Configuration) GetBoolWithDefault ¶
func (c *Configuration) GetBoolWithDefault(key string, dflt bool) bool
func (*Configuration) GetSliceMapString ¶
func (c *Configuration) GetSliceMapString(key string) ([]map[string]string, bool)
func (*Configuration) GetStringOrDefault ¶
func (c *Configuration) GetStringOrDefault(key ...string) string
TODO: rename this func
func (*Configuration) GetStringSlice ¶
func (c *Configuration) GetStringSlice(key string) ([]string, bool)
Click to show internal directories.
Click to hide internal directories.