package utilities
Import Path
github.com/grpc-ecosystem/grpc-gateway/v2/utilities (on go.dev)
Dependency Relation
imports 5 packages, and imported by 3 packages
Involved Source Files
Package utilities provides members for internal use in grpc-gateway.
pattern.go
readerfactory.go
string_array_flag.go
trie.go
Package-Level Type Names (total 3)
DoubleArray is a Double Array implementation of trie on sequences of strings.
Base is the base array of Double Array
Check is the check array of Double Array
Encoding keeps an encoding from string to int
HasCommonPrefix determines if any sequence in the DoubleArray is a prefix of the given sequence.
func NewDoubleArray(seqs [][]string) *DoubleArray
func github.com/grpc-ecosystem/grpc-gateway/v2/runtime.PopulateQueryParameters(msg proto.Message, values url.Values, filter *DoubleArray) error
func github.com/grpc-ecosystem/grpc-gateway/v2/runtime.(*DefaultQueryParser).Parse(msg proto.Message, values url.Values, filter *DoubleArray) error
func github.com/grpc-ecosystem/grpc-gateway/v2/runtime.QueryParameterParser.Parse(msg proto.Message, values url.Values, filter *DoubleArray) error
OpCode is an opcode of compiled path patterns.
const OpCapture
const OpConcatN
const OpEnd
const OpLitPush
const OpNop
const OpPush
const OpPushM
StringArrayFlags is a wrapper of `[]string` to provider an interface for `flag.Var`
Set appends a value to `StringArrayFlags`
String returns a string representation of `StringArrayFlags`
*StringArrayFlags : expvar.Var
*StringArrayFlags : flag.Value
*StringArrayFlags : fmt.Stringer
func StringArrayFlag(f flagInterface, name string, usage string) *StringArrayFlags
Package-Level Functions (total 3)
IOReaderFactory takes in an io.Reader and returns a function that will allow you to create a new reader that begins
at the start of the stream
NewDoubleArray builds a DoubleArray from a set of sequences of strings.
StringArrayFlag defines a flag with the specified name and usage string.
The return value is the address of a `StringArrayFlags` variable that stores the repeated values of the flag.
Package-Level Constants (total 7)
OpCapture pops an item and binds it to the variable
OpConcatN pops N items from stack, concatenates them and pushes it back to stack
OpEnd is the least positive invalid opcode.
OpLitPush pushes a component to stack if it matches to the literal
OpNop does nothing
OpPush pushes a component to stack
OpPushM concatenates the remaining components and pushes it to stack
![]() |
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. |