Documentation ¶
Overview ¶
Package str provides string parsing capabilities for Go.
Simplest usage
val := str.Parse(s)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultParser = Parser([]ParseFunc{ parsers.Quoted, parsers.Nil, parsers.Null, parsers.Bool, parsers.Int, parsers.Int64, parsers.UInt, parsers.Uint64, parsers.Float64, })
DefaultParser is the default Parser that includes all built-in ParseFunc functions.
Functions ¶
Types ¶
type ParseFunc ¶
ParseFunc is a function that attempts to parse the string into a real type and returns whether that was successful or not.
type Parser ¶
type Parser []ParseFunc
Parser is a slice of ParseFunc functions that will be called in order.
Click to show internal directories.
Click to hide internal directories.