Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSyntax = errors.New("invalid syntax")
Functions ¶
func Lookup ¶
Example (False) ¶
fmt.Println(Lookup(``, ``)) fmt.Println(Lookup(` `, ``)) fmt.Println(Lookup(`a`, ``)) fmt.Println(Lookup(`a:""`, ``)) fmt.Println(Lookup(`a:"av"`, `b`))
Output: false false false false false
Example (True) ¶
fmt.Println(Lookup(`a:""`, `a`)) fmt.Println(Lookup(`a:"av"`, `a`)) fmt.Println(Lookup(`a:"av" b:"b\" v"`, `b`)) fmt.Println(Lookup(`a:"av" b:"b v" `, `b`)) fmt.Println(Lookup(`名称:"值 \"def"`, `名称`))
Output: true av true b" v true b v true 值 "def true
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.