package httprule
Import Path
github.com/grpc-ecosystem/grpc-gateway/v2/internal/httprule (on go.dev)
Dependency Relation
imports 4 packages, and imported by one package
Package-Level Type Names (total 3)
Compiler compiles utilities representation of path templates into marshallable operations.
They can be unmarshalled by runtime.NewPattern.
( Compiler) Compile() Template
func Parse(tmpl string) (Compiler, error)
InvalidTemplateError indicates that the path template is not valid.
( InvalidTemplateError) Error() string
InvalidTemplateError : error
Template is a compiled representation of path templates.
Fields is a list of field paths bound in this template.
OpCodes is a sequence of operations.
Pool is a constant pool
Original template (example: /v1/a_bit_of_everything)
Verb is a VERB part in the template.
Version is the version number of the format.
func Compiler.Compile() Template
Package-Level Functions (only one)
Parse parses the string representation of path template
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |