Documentation ¶
Index ¶
Constants ¶
View Source
const ( PathToken token = "path" SlashToken token = "slash" SlotToken token = "slot" QuestionToken token = "question" StarToken token = "star" ErrorToken token = "error" EndToken token = "end" )
Types of tokens
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tokens ¶
type Tokens []Token
Tokens is a list of tokens
func (Tokens) At ¶
At returns the individual value at i. For paths, this will be a single character, for slots, this will be the whole slot name.
func (Tokens) Size ¶
Size returns the number individual values. For paths, this will count the number of characters, whereas slots will count as one.
Click to show internal directories.
Click to hide internal directories.