type Signature struct {
strings.Builder// contains filtered or unexported fields
}
parses a dictionary key of ascii words separated by, and terminating with, a colon.
the words must start with a letter, but can contain spaces and underscores.
ex. `a:`, `a:b:`, `and:more complex:keys_like_this:`
first character of the signature must be a letter
subsequent characters of words can be letters, numbers, spaces, or "connectors" (underscore)
colons separate word parts
type Tokenizer struct {
Notifier Notifier// configure the upcoming Decode to produce only floating point numbers.// otherwise it will produce int for integers, and unit for hex specifications.
UseFloats bool// controls number decoding
}
const (
Invalid Type = iota// placeholder, not generated by the tokenizer Array // the value is the open or close rune Bool
Comment // a completely empty comment is a blank line Key // an empty key means a sequence; otherwise a mapping Number
String
)