types

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Tok token.Token
	Pos token.Pos
	Lit string
}

A Token is a lexical unit returned by Scan.

func (*Token) End

func (p *Token) End() token.Pos

End returns end position of this token.

func (*Token) String

func (p *Token) String() string

String returns the string representation of a token.

Jump to

Keyboard shortcuts

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