Documentation ¶
Index ¶
- func ParseReflectTags(v reflect.Value) error
- func ParseTagValue(str string) maputil.SMap
- func ParseTagValueINI(field, str string) (mp maputil.SMap, err error)
- func ParseTags(v interface{}) error
- type Aliases
- func (as *Aliases) AddAlias(real, alias string)
- func (as *Aliases) AddAliasMap(alias2real map[string]string)
- func (as *Aliases) AddAliases(real string, aliases []string)
- func (as *Aliases) HasAlias(alias string) bool
- func (as *Aliases) Mapping() map[string]string
- func (as *Aliases) ResolveAlias(alias string) string
- type MapDataStore
- func (md *MapDataStore) ClearData()
- func (md *MapDataStore) Data() map[string]interface{}
- func (md *MapDataStore) EnableLock()
- func (md *MapDataStore) SetData(data map[string]interface{})
- func (md *MapDataStore) SetValue(key string, val interface{})
- func (md *MapDataStore) Value(key string) interface{}
- type TagParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseReflectTags ¶
func ParseTagValueINI ¶
ParseTagValueINI tag value string. is like INI format data eg: "name=int0;shorts=i;required=true;desc=int option message"
Types ¶
type Aliases ¶
type Aliases struct { // Checker custom add alias name checker func Checker func(alias string) // should return bool OR error ?? // contains filtered or unexported fields }
Aliases implemented an simple string alias map.
func (*Aliases) AddAliasMap ¶
AddAliasMap to the Aliases
func (*Aliases) AddAliases ¶
AddAliases to the Aliases
func (*Aliases) ResolveAlias ¶
ResolveAlias by given name.
type MapDataStore ¶
MapDataStore struct
func (*MapDataStore) EnableLock ¶
func (md *MapDataStore) EnableLock()
EnableLock for the operate data
func (*MapDataStore) SetData ¶
func (md *MapDataStore) SetData(data map[string]interface{})
SetData set all data
func (*MapDataStore) SetValue ¶
func (md *MapDataStore) SetValue(key string, val interface{})
SetValue to data
func (*MapDataStore) Value ¶
func (md *MapDataStore) Value(key string) interface{}
Value get from data
Click to show internal directories.
Click to hide internal directories.