Documentation ¶
Index ¶
Constants ¶
View Source
const ( TokenOpenObject = '{' TokenCloseObject = '}' TokenOpenArray = '[' TokenCloseArray = ']' TokenComma = ',' TokenColon = ':' TokenDoubleQuote = '"' TokenBackslash = '\\' TokenSlash = '/' TokenAsterisk = '*' TokenNewline = '\n' TokenSpace = ' ' TokenCarriageReturn = '\r' TokenTab = '\t' TokenFormFeed = '\f' TokenBackspace = '\b' TokenEof = 4 )
View Source
const ExpectedEofError = "Expected end of file at line %d, column %d"
View Source
const ExpectedTokenError = "Expected '%c' at line %d, column %d"
View Source
const UnexpectedEofError = "Unexpected end of file at line %d, column %d"
View Source
const UnexpectedTokenError = "Unexpected token '%c' (%[1]U) at line %d, column %d"
View Source
const UnexpectedTokenExpectedError = "Unexpected token '%c' (%[1]U), expected '%c' (%[2]U) at line %d, column %d"
Variables ¶
View Source
var CacheDir string
CacheDir is a directory used for cache
Functions ¶
func ConvertToUTF8 ¶
func MarshalJSONC ¶
func UnmarshallJSONC ¶
Types ¶
type StringReader ¶
type StringReader struct {
// contains filtered or unexported fields
}
func NewStringReader ¶
func NewStringReader(str []byte) *StringReader
func (*StringReader) Peek ¶
func (sr *StringReader) Peek() rune
func (*StringReader) Read ¶
func (sr *StringReader) Read() rune
Click to show internal directories.
Click to hide internal directories.