Documentation
¶
Index ¶
- Variables
- func Flags(s Scanner, v string) (names []string)
- func KeyValuePairs(s Scanner, v string) (values [][]string)
- func NonFlags(s Scanner, v string) (names []string)
- func Parse(s Scanner, v string, flag ...ParseFlag) (tags Map, flags Set)
- func Strings(v string) (values []string)
- type Map
- func (this Map) Clone() (clone Map)
- func (this Map) Empty() bool
- func (this Map) Enable(key string)
- func (this Map) Flag(name string) bool
- func (this Map) Flags() (flags []string)
- func (this Map) Get(key string) (v string)
- func (this Map) GetAny(key ...string) (v string)
- func (this Map) GetAnyOk(key ...string) (v string, ok bool)
- func (this Map) GetAnyString(key ...string) (v string)
- func (this Map) GetOk(key string) (v string, ok bool)
- func (this Map) GetString(key string) (v string)
- func (this Map) GetStringAlias(key string, alias ...string) (v string)
- func (this Map) GetTags(name string, flags ...ParseFlag) (tags Map)
- func (this *Map) Parse(tags StructTag, key string, flag ParseFlag, keyAlias ...string) (ok bool)
- func (this *Map) ParseCallback(tags StructTag, keys []string, flag ParseFlag, cb ...func(dest Map, n Node)) (ok bool)
- func (this *Map) ParseCallbackDefault(tags StructTag, keys []string, cb ...func(dest Map, n Node)) (ok bool)
- func (this *Map) ParseDefault(tags StructTag, key string, keyAlias ...string) (ok bool)
- func (this *Map) ParseString(s string, flags ParseFlag, cb ...func(dest Map, n Node))
- func (this *Map) ParseStringDefault(s string, cb ...func(dest Map, n Node))
- func (this *Map) Scanner() Scanner
- func (this *Map) Set(key, value string)
- func (this Map) SetFlag(flagName ...string) Map
- func (this Map) SetParseFlag(name ...string) Map
- func (this Map) String() string
- func (this Map) TagsOf(value string, flags ...ParseFlag) (tags Map)
- func (this Map) Update(setting ...map[string]string)
- type Node
- type NodeFlag
- type NodeKeyValue
- type NodeTags
- type NodeType
- type ParseFlag
- type Scanner
- func (this Scanner) IsTags(value string) bool
- func (this Scanner) Scan(s string) (key, value, news string, keyArgs []string)
- func (this Scanner) ScanAll(s string, cb func(node Node))
- func (this Scanner) ScanAllFlags(s string, flags ParseFlag, cb func(flag bool, key string, value string))
- func (this Scanner) ScanValue(s string, keyArgs *[]string) (value, news string)
- func (this Scanner) String(value string) string
- func (this Scanner) ToTags(value string) string
- type Set
- type StructTag
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = Scanner{';', ':', '{', '}'}
Functions ¶
func KeyValuePairs ¶
Types ¶
type Map ¶
func (Map) GetAnyString ¶
func (*Map) ParseCallback ¶
func (*Map) ParseCallbackDefault ¶
func (*Map) ParseDefault ¶
func (*Map) ParseString ¶
func (*Map) ParseStringDefault ¶
func (Map) SetParseFlag ¶
type NodeKeyValue ¶
func (NodeKeyValue) String ¶
func (this NodeKeyValue) String() string
func (NodeKeyValue) Type ¶
func (NodeKeyValue) Type() NodeType
type Scanner ¶
type Scanner struct { Fields, Key, Start, End uint8 }
func (Scanner) ScanAllFlags ¶
type StructTag ¶
type StructTag string
func (StructTag) Get ¶
Get returns the value associated with key in the tag string. If there is no such key in the tag, Get returns the empty string. If the tag does not have the conventional format, the value returned by Get is unspecified. To determine whether a tag is explicitly set to the empty string, use Lookup.
Click to show internal directories.
Click to hide internal directories.