core: v2ray.com/core/infra/conf/json Index | Files

package json

import "v2ray.com/core/infra/conf/json"

Index

Package Files

reader.go

type Reader Uses

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 Uses

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

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

type State Uses

type State byte

State is the internal state of parser.

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

Package json imports 2 packages (graph) and is imported by 2 packages. Updated 2019-04-20. Refresh now. Tools for package owners.