Documentation
¶
Index ¶
- Constants
- func CanNil(v reflect.Value) bool
- func IndirectType(v interface{}) reflect.Type
- func IsNil(v interface{}) bool
- func IsSlice(s interface{}) bool
- func MarshalPrimitive(v reflect.Value) string
- func MarshalStruct(v interface{}, values map[string]string, tag string)
- func UnmarshalPrimitive(str string, v reflect.Value) error
- func UnmarshalStruct(v interface{}, values Values, tag string)
- type Equaler
- type StringMap
- type StringSliceMap
- type Values
Constants ¶
View Source
const (
ErrNonPrimitive = errors.Err("not primitive type")
)
Variables ¶
This section is empty.
Functions ¶
func IndirectType ¶
IndirectType return real type of value without pointer
func MarshalPrimitive ¶
func MarshalStruct ¶
func UnmarshalPrimitive ¶
UnmarshalPrimitive unmarshal bytes to primitive
func UnmarshalStruct ¶
Types ¶
type Equaler ¶
type Equaler interface {
EqualTo(interface{}) bool
}
Equaler is a interface that compare whether two object is equal
type StringSliceMap ¶
func (StringSliceMap) Get ¶
func (s StringSliceMap) Get(name string) string
Click to show internal directories.
Click to hide internal directories.