Documentation ¶
Index ¶
- type Map
- func (c *Map) AllKeys() []string
- func (c Map) Delete(key string)
- func (c Map) Get(key string) any
- func (c Map) GetBool(key string) bool
- func (c Map) GetBoolOk(key string) (bool, bool, error)
- func (c Map) GetDuration(key string) time.Duration
- func (c Map) GetDurationOk(key string) (time.Duration, bool, error)
- func (c Map) GetInt(key string) int
- func (c Map) GetIntOk(key string) (int, bool, error)
- func (c Map) GetOk(key string) (any, bool)
- func (c Map) GetString(key string) string
- func (c Map) GetStringOk(key string) (string, bool, error)
- func (c Map) GetStringSlice(key string) []string
- func (c Map) GetStringSliceOk(key string) ([]string, bool, error)
- func (c Map) GetUint(key string) uint
- func (c Map) GetUint32(key string) uint32
- func (c Map) GetUint32Ok(key string) (uint32, bool, error)
- func (c Map) GetUintOk(key string) (uint, bool, error)
- func (c *Map) InjectEnvVars(env []string, prefix string) []error
- func (c Map) MarshalJSON() ([]byte, error)
- func (c Map) MarshalYAML() (interface{}, error)
- func (c *Map) Merge(x *Map) error
- func (c *Map) Schema() map[string]reflect.Type
- func (c Map) Set(key string, value any) error
- func (c Map) SetBool(key string, value bool)
- func (c Map) SetDuration(key string, value time.Duration)
- func (c *Map) SetFromCLIArgs(key string, args ...string) error
- func (c *Map) SetFromENV(key string, arg string) error
- func (c Map) SetInt(key string, value int)
- func (c *Map) SetKeyTypeSchema(key string, t any)
- func (c Map) SetString(key string, value string)
- func (c Map) SetUint(key string, value uint)
- func (c Map) SetUint32(key string, value uint32)
- func (c *Map) UnmarshalJSON(data []byte) error
- func (c *Map) UnmarshalYAML(node *yaml.Node) error
- type UnmarshalErrors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func (Map) GetStringSlice ¶
func (Map) MarshalJSON ¶
func (Map) MarshalYAML ¶
func (*Map) SetKeyTypeSchema ¶
func (*Map) UnmarshalJSON ¶
func (*Map) UnmarshalYAML ¶
type UnmarshalErrors ¶
type UnmarshalErrors struct {
// contains filtered or unexported fields
}
UnmarshalErrors is a collection of errors that occurred during unmarshalling. Do not return this type directly, but use its result() method instead.
func (*UnmarshalErrors) Error ¶
func (e *UnmarshalErrors) Error() string
func (*UnmarshalErrors) WrappedErrors ¶
func (e *UnmarshalErrors) WrappedErrors() []error
WrappedErrors returns the list of errors that occurred during unmarshalling.
Click to show internal directories.
Click to hide internal directories.