Documentation ¶
Index ¶
- type GenericConfig
- func (c *GenericConfig) DeepCopy() *GenericConfig
- func (c *GenericConfig) DeepCopyInto(out *GenericConfig)
- func (c *GenericConfig) DeepCopyJsonObject() *GenericConfig
- func (c *GenericConfig) Del(key string)
- func (c *GenericConfig) Get(key string) (value *Value)
- func (c *GenericConfig) Inner() map[string]interface{}
- func (c *GenericConfig) MarshalJSON() ([]byte, error)
- func (c *GenericConfig) MarshalTOML() ([]byte, error)
- func (c *GenericConfig) Set(key string, value interface{})
- func (c *GenericConfig) SetIfNil(key string, value interface{})
- func (c *GenericConfig) UnmarshalJSON(data []byte) error
- func (c *GenericConfig) UnmarshalTOML(data []byte) error
- type Value
- func (v *Value) AsFloat() (float64, error)
- func (v *Value) AsInt() (int64, error)
- func (v *Value) AsString() (string, error)
- func (v *Value) AsStringSlice() ([]string, error)
- func (v *Value) Interface() interface{}
- func (v *Value) MustFloat() float64
- func (v *Value) MustInt() int64
- func (v *Value) MustString() string
- func (v *Value) MustStringSlice() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericConfig ¶
type GenericConfig struct { // Export this field to make "apiequality.Semantic.DeepEqual" happy now. // User of GenericConfig should not directly access this field. MP map[string]interface{} }
func New ¶
func New(o map[string]interface{}) *GenericConfig
func (*GenericConfig) DeepCopy ¶
func (c *GenericConfig) DeepCopy() *GenericConfig
func (*GenericConfig) DeepCopyInto ¶
func (c *GenericConfig) DeepCopyInto(out *GenericConfig)
func (*GenericConfig) DeepCopyJsonObject ¶
func (c *GenericConfig) DeepCopyJsonObject() *GenericConfig
func (*GenericConfig) Del ¶ added in v1.1.6
func (c *GenericConfig) Del(key string)
func (*GenericConfig) Get ¶ added in v1.1.6
func (c *GenericConfig) Get(key string) (value *Value)
func (*GenericConfig) Inner ¶ added in v1.1.6
func (c *GenericConfig) Inner() map[string]interface{}
func (*GenericConfig) MarshalJSON ¶ added in v1.1.6
func (c *GenericConfig) MarshalJSON() ([]byte, error)
func (*GenericConfig) MarshalTOML ¶ added in v1.1.6
func (c *GenericConfig) MarshalTOML() ([]byte, error)
func (*GenericConfig) Set ¶ added in v1.1.6
func (c *GenericConfig) Set(key string, value interface{})
func (*GenericConfig) SetIfNil ¶ added in v1.1.6
func (c *GenericConfig) SetIfNil(key string, value interface{})
func (*GenericConfig) UnmarshalJSON ¶ added in v1.1.6
func (c *GenericConfig) UnmarshalJSON(data []byte) error
func (*GenericConfig) UnmarshalTOML ¶ added in v1.1.6
func (c *GenericConfig) UnmarshalTOML(data []byte) error
type Value ¶ added in v1.1.6
type Value struct {
// contains filtered or unexported fields
}
func (*Value) AsStringSlice ¶ added in v1.1.6
func (*Value) MustString ¶ added in v1.1.6
func (*Value) MustStringSlice ¶ added in v1.1.6
Click to show internal directories.
Click to hide internal directories.