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

package json

import "github.com/v2ray/v2ray-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). Updated 2020-04-05. Refresh now. Tools for package owners.