source

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItemError itemType = iota
	ItemEOF
	ItemText
	ItemComment
	ItemSep
	ItemString
)

Variables

This section is empty.

Functions

func Parse

func Parse(ctx context.Context, src string) (docs map[string]string, annotations []oracall.Annotation, err error)

func ParseDocs added in v0.28.1

func ParseDocs(ctx context.Context, src string) (docs map[string]string, err error)

Types

type Item added in v0.28.1

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

func NewItem added in v0.28.1

func NewItem(typ itemType, val string) Item

func (Item) Is added in v0.28.1

func (it Item) Is(t itemType) bool

func (Item) String added in v0.28.1

func (i Item) String() string

func (Item) Type added in v0.28.1

func (it Item) Type() itemType

func (Item) Value added in v0.28.1

func (it Item) Value() string

type ItemsIter added in v0.28.1

type ItemsIter iter.Seq[Item]

func Lex added in v0.28.1

func Lex(ctx context.Context, input string) ItemsIter

Lex creates a new scanner for the input string.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳