json

package
v4.15.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	io.Reader
	// contains filtered or unexported fields
}

Reader is a reader for filtering comments. It supports Java style single and multi line comment syntax, and Python style single line comment syntax.

func (*Reader) Read

func (v *Reader) Read(b []byte) (int, error)

Read implements io.Reader.Read(). Buffer must be at least 3 bytes.

type State

type State byte

State is the internal state of parser.

const (
	StateContent State = iota
	StateEscape
	StateDoubleQuote
	StateDoubleQuoteEscape
	StateSingleQuote
	StateSingleQuoteEscape
	StateComment
	StateSlash
	StateMultilineComment
	StateMultilineCommentStar
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL