Documentation ¶
Index ¶
- Variables
- func GetValueWithImmutableOption(getter GetImmutableOptioner, opt objx.Map, key string) *objx.Value
- func InvalidArgument(key string) error
- func SetenvIfNotExists(key, val string)
- func Setopt(conds SetoptConds, opts ...SetOptOption) func(...interface{}) error
- func ToBool(v *bool) func(string, interface{}) error
- func ToByte(v *byte) func(string, interface{}) error
- func ToContext(y *context.Context) func(string, interface{}) error
- func ToDuration(v *time.Duration, unit ...time.Duration) func(string, interface{}) error
- func ToInt(v *int) func(string, interface{}) error
- func ToInt32(v *int32) func(string, interface{}) error
- func ToInt64(v *int64) func(string, interface{}) error
- func ToIsTraced(y *bool) func(string, interface{}) error
- func ToLogger(v *log.FieldLogger) func(string, interface{}) error
- func ToString(v *string) func(string, interface{}) error
- func ToStringMap(v *map[string]interface{}) func(string, interface{}) error
- func ToStringMapString(v *map[string]string) func(string, interface{}) error
- type GetImmutableOptioner
- type Option
- type SetOptOption
- type SetOptOptions
- type SetoptConds
Constants ¶
This section is empty.
Variables ¶
View Source
var NewOption = NewOptionArr
Functions ¶
func GetValueWithImmutableOption ¶ added in v1.1.26
func InvalidArgument ¶
func SetenvIfNotExists ¶ added in v1.1.18
func SetenvIfNotExists(key, val string)
func Setopt ¶
func Setopt(conds SetoptConds, opts ...SetOptOption) func(...interface{}) error
func ToDuration ¶
func ToIsTraced ¶ added in v1.1.28
func ToStringMap ¶ added in v1.1.24
Types ¶
type GetImmutableOptioner ¶ added in v1.1.26
type Option ¶
type Option interface { Set(string, interface{}) Get(string) interface{} Keys() []string Contains(string) bool Update(Option) GetString(string) string GetStrings(string) []string GetInt(string) int GetUInt32(string) uint32 GetUInt64(string) uint64 GetInt32(string) int32 GetInt64(string) int64 GetFloat32(string) float32 GetFloat64(string) float64 GetBool(string) bool Data() map[string]interface{} }
func NewOptionArr ¶
func NewOptionArr(args ...interface{}) Option
func NewOptionMap ¶
type SetOptOption ¶ added in v1.1.16
type SetOptOption func(*SetOptOptions)
func SetSkip ¶ added in v1.1.16
func SetSkip(skip bool) SetOptOption
type SetOptOptions ¶ added in v1.1.16
type SetOptOptions struct {
Skip bool
}
func NewSetOptOptions ¶ added in v1.1.16
func NewSetOptOptions() *SetOptOptions
type SetoptConds ¶
Click to show internal directories.
Click to hide internal directories.