Documentation
¶
Index ¶
- Variables
- func CAS(data interface{}, fieldName string, oldValue, newValue interface{}) error
- func Get(data interface{}, fieldName string) (interface{}, error)
- func Set(data interface{}, fieldName string, value interface{}) error
- func Tag(data interface{}, fieldName string, tag string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("field does not exist") ErrNotMatched = errors.New("CAS old value does not match") ErrInvalidType = errors.New("data has invalid type - not a pointer nor a struct") ErrNonPointer = errors.New("a pointer was expected") ErrNoSet = errors.New("can not set field value") ErrTypeMismatch = errors.New("field type & value type are different") )
Errors
Functions ¶
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package inflectlab is an incubator for ideas/tools
|
Package inflectlab is an incubator for ideas/tools |
Click to show internal directories.
Click to hide internal directories.