json

package
v5.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTOML

func FromTOML(v []byte) ([]byte, error)

FromTOML convert toml to json

func FromYAML

func FromYAML(v []byte) ([]byte, error)

FromYAML convert yaml to json

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().

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