Documentation ¶
Index ¶
- Variables
- func Iterate(s []byte, cb func(typ TokenType, idx, len int)) error
- type JSON
- func (j *JSON) BatchGet(into map[string]*JSON) int
- func (j *JSON) Bool() (bool, error)
- func (c *JSON) Close()
- func (j *JSON) Float64() (float64, error)
- func (j *JSON) Get(key string) *JSON
- func (j *JSON) Index(i int) *JSON
- func (j *JSON) Int64() (int64, error)
- func (j *JSON) IsNull() bool
- func (j *JSON) Keys() []string
- func (j *JSON) Len() int
- func (j *JSON) Number() (json.Number, error)
- func (j *JSON) String() (string, error)
- func (c *JSON) Tokenize(s []byte) error
- func (j *JSON) Type() TokenType
- func (j *JSON) Validate() error
- type Token
- type TokenType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPanic = errors.New("panic occurred") ErrUnexpectedSep = errors.New("invalid separator") ErrEarlyEOF = errors.New("early EOF") ErrUnexpectedToken = errors.New("invalid TokenType") ErrInvalidParentheses = errors.New("invalid parentheses") ErrStandardViolation = errors.New("json not compliant to RFC8259") // for some simple validations )
Functions ¶
Types ¶
type JSON ¶
type JSON struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.