Documentation ¶
Index ¶
- Variables
- func InvalidArgument(key string) error
- func Setopt(conds SetoptConds) func(...interface{}) error
- func ToBool(v *bool) func(string, interface{}) error
- func ToByte(v *byte) func(string, interface{}) error
- func ToDuration(v *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 ToLogger(v *log.FieldLogger) func(string, interface{}) error
- func ToString(v *string) func(string, interface{}) error
- type Option
- type SetoptConds
Constants ¶
This section is empty.
Variables ¶
View Source
var NewOption = NewOptionArr
Functions ¶
func InvalidArgument ¶
func Setopt ¶
func Setopt(conds SetoptConds) func(...interface{}) error
Types ¶
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 SetoptConds ¶
Click to show internal directories.
Click to hide internal directories.