Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EqualPair 扫描 K=V这类形式的Pair字串 EqualPair = NewPair('=', func(r rune) bool { return unicode.IsSpace(r) || r == '"' }) // ColonPair 扫描 K:V 这类形式的Pair字串 ColonPair = NewPair(':', func(r rune) bool { return unicode.IsSpace(r) || r == '"' }) )
预定义Pair扫描对象
View Source
var ( // 逗号分割 Comma = NewScanner(',', unicode.IsSpace) // 分号分割 Semicolon = NewScanner(';', unicode.IsSpace) // 空格分割 Space = NewScanner(' ', nil) // 行分割 Line = NewScanner('\n', unicode.IsSpace) )
扫描器
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.