Documentation
¶
Index ¶
- Constants
- Variables
- func IsNumber(value string) bool
- type ArrayInternalState
- type ArrayState
- type CommentMultiLineState
- type CommentState
- type Decoder
- type Error
- type Filter
- type KeyNoQuoteState
- type KeyState
- type NumberState
- type ObjInternalState
- type ObjectState
- type Options
- type ReadRune
- type Ring
- type RootState
- type State
- type TokenType
- type ValueMultilineState
- type ValueNoQuoteState
- type ValueState
Constants ¶
View Source
const ( NonZeroNumbers = "1,2,3,4,5,6,7,8,9" Numbers = "0" + NonZeroNumbers )
Variables ¶
View Source
var ErrDontAdvance = fmt.Errorf(`do-not-advance`)
Functions ¶
Types ¶
type ArrayInternalState ¶
type ArrayInternalState = int
type ArrayState ¶
type ArrayState struct {
// contains filtered or unexported fields
}
func (ArrayState) Type ¶
func (ArrayState) Type() TokenType
type CommentMultiLineState ¶
type CommentMultiLineState struct {
// contains filtered or unexported fields
}
func (*CommentMultiLineState) Type ¶
func (c *CommentMultiLineState) Type() TokenType
type CommentState ¶
type CommentState struct{}
func (*CommentState) Type ¶
func (c *CommentState) Type() TokenType
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func NewDecoder(r io.RuneReader, opts ...Options) (*Decoder, error)
type KeyNoQuoteState ¶
type KeyNoQuoteState struct {
// contains filtered or unexported fields
}
func (*KeyNoQuoteState) Type ¶
func (o *KeyNoQuoteState) Type() TokenType
type NumberState ¶
type NumberState int
const ( NumberRoot NumberState = iota ZeroStart Digit PlusMinus )
type ObjInternalState ¶
type ObjInternalState = int
const ( ObjIntNextAfterComma ObjInternalState = iota ObjIntNext ObjInternalKey ObjInternalDelimiter ObjInternalValue )
const ( ArrayIntStart ObjInternalState = iota ArrayIntValue ArrayIntAfterValue )
type ObjectState ¶
type ObjectState struct {
// contains filtered or unexported fields
}
func (*ObjectState) Type ¶
func (o *ObjectState) Type() TokenType
type ValueMultilineState ¶
type ValueMultilineState struct{}
func (*ValueMultilineState) Type ¶
func (v *ValueMultilineState) Type() TokenType
type ValueNoQuoteState ¶
type ValueNoQuoteState struct {
// contains filtered or unexported fields
}
func (*ValueNoQuoteState) Type ¶
func (o *ValueNoQuoteState) Type() TokenType
type ValueState ¶
type ValueState struct {
// contains filtered or unexported fields
}
func (*ValueState) Type ¶
func (v *ValueState) Type() TokenType
Click to show internal directories.
Click to hide internal directories.