json

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFile

func FromFile(f *fs.File, oo ...Option) schema.Document

FromFile creates a JSON document from file.

func New

func New[T bytes.Byter](name string, content T, oo ...Option) schema.Document

New creates a JSON document with specified name and content.

Types

type Document

type Document struct {
	// contains filtered or unexported fields
}

func (*Document) Check

func (d *Document) Check() error

func (*Document) Content

func (d *Document) Content() bytes.Bytes

func (*Document) Len

func (d *Document) Len() (uint, error)

func (*Document) NextLexeme

func (d *Document) NextLexeme() (lexeme.LexEvent, error)

type Option

type Option func(s *Document)

func AllowTrailingNonSpaceCharacters

func AllowTrailingNonSpaceCharacters() Option

Jump to

Keyboard shortcuts

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