scanner

package
v0.0.0-...-091dabd Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 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 DefaultScanner

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

func (*DefaultScanner) More

func (s *DefaultScanner) More() bool

func (*DefaultScanner) Scan

func (s *DefaultScanner) 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 StandardScanner

type StandardScanner struct {
	*json.Decoder
}

func (StandardScanner) Scan

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

Jump to

Keyboard shortcuts

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