Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IntType ¶
type IntType interface {
~int | ~int8 | ~int16 | ~int32 | ~int64 |
~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
}
IntType represents any type compatible with the Go integer built-in types, to be used as a destination for writing the value of an url path element.
type Parameter ¶
type Parameter string
A Parameter is a named element of a URL route, encoded such that a gorilla router interprets it as a path parameter.
type Parser ¶
A Parser parses raw input into a destination variable.
func String ¶
func String[T StringType](s *T) Parser
String creates a parser that will parse a path element into s.
type Schema ¶
A Schema describes how path variables should be parsed. Currently only int and string types are supported.
type StringType ¶
type StringType interface {
~string
}
Click to show internal directories.
Click to hide internal directories.