patternscan

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnescapeBraces

func UnescapeBraces(s string) string

Types

type CatchAllRule

type CatchAllRule uint8
const (
	CatchAllAtEnd CatchAllRule = iota
	CatchAllInFirstPart
)

type Options

type Options struct {
	Separator           byte
	CatchAllRule        CatchAllRule
	ErrInvalidParam     error
	ErrInvalidParamPart error
	ErrInvalidCatchAll  error
}

type Token

type Token struct {
	Kind TokenKind
	Text string
}

func Scan

func Scan(pattern string, opts *Options) ([]Token, error)

type TokenKind

type TokenKind uint8
const (
	TokenLiteral TokenKind = iota
	TokenParam
	TokenCatchAll
)

Jump to

Keyboard shortcuts

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