MCPcopy Create free account
hub / github.com/aws/smithy-go / NewQueryValue

Function NewQueryValue

encoding/httpbinding/query.go:20–26  ·  view source on GitHub ↗

NewQueryValue creates a new QueryValue which enables encoding a query value into the given url.Values.

(query url.Values, key string, append bool)

Source from the content-addressed store, hash-verified

18// NewQueryValue creates a new QueryValue which enables encoding
19// a query value into the given url.Values.
20func NewQueryValue(query url.Values, key string, append bool) QueryValue {
21 return QueryValue{
22 query: query,
23 key: key,
24 append: append,
25 }
26}
27
28func (qv QueryValue) updateKey(value string) {
29 if qv.append {

Callers 3

SetQueryMethod · 0.85
AddQueryMethod · 0.85
TestQueryValueFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestQueryValueFunction · 0.68