Documentation
¶
Index ¶
- type Option
- func (this *Option) Get(key string) (interface{}, bool)
- func (this *Option) GetBool(key string) (bool, bool)
- func (this *Option) GetFloat32(key string) (float32, bool)
- func (this *Option) GetFloat64(key string) (float64, bool)
- func (this *Option) GetInt(key string) (int, bool)
- func (this *Option) GetInt32(key string) (int32, bool)
- func (this *Option) GetInt64(key string) (int64, bool)
- func (this *Option) GetString(key string) (string, bool)
- func (this *Option) Map() map[string]interface{}
- func (this *Option) Merge(that *Option)
- func (this *Option) MergeAs(that *Option) *Option
- func (this *Option) MergeMap(that map[string]interface{})
- func (this *Option) MergeMapAs(that map[string]interface{}) *Option
- func (this *Option) MustGet(key string) interface{}
- func (this *Option) MustGetBool(key string) bool
- func (this *Option) MustGetFloat32(key string) float32
- func (this *Option) MustGetFloat64(key string) float64
- func (this *Option) MustGetInt(key string) int
- func (this *Option) MustGetInt32(key string) int32
- func (this *Option) MustGetInt64(key string) int64
- func (this *Option) MustGetString(key string) string
- func (this *Option) Set(key string, value interface{}) *Option
- type OptionError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
func (*Option) MergeMapAs ¶
func (*Option) MustGetBool ¶
func (*Option) MustGetFloat32 ¶
func (*Option) MustGetFloat64 ¶
func (*Option) MustGetInt ¶
func (*Option) MustGetInt32 ¶
func (*Option) MustGetInt64 ¶
func (*Option) MustGetString ¶
type OptionError ¶
type OptionError struct {
// contains filtered or unexported fields
}
func (*OptionError) Error ¶
func (this *OptionError) Error() string
Click to show internal directories.
Click to hide internal directories.
