scanner

package
v0.0.0-...-4158bf4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Default

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

func (*Default) More

func (s *Default) More() bool

func (*Default) Scan

func (s *Default) Scan() (token.Token, string, error)

type Scanner

type Scanner interface {
	More() bool
	Scan() (token.Token, string, error)
}

func New

func New(s string) Scanner

func NewFromBytes

func NewFromBytes(data []byte) Scanner

func NewStandard

func NewStandard(s string) Scanner

func NewStandardFromBytes

func NewStandardFromBytes(data []byte) Scanner

type Standard

type Standard struct {
	*json.Decoder
}

func (Standard) Scan

func (s Standard) Scan() (token.Token, string, error)

Jump to

Keyboard shortcuts

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