MCPcopy Create free account
hub / github.com/google/go-querystring / EncodeValues

Method EncodeValues

query/encode_test.go:518–521  ·  view source on GitHub ↗

EncodeValues encodes values with leading underscores

(key string, v *url.Values)

Source from the content-addressed store, hash-verified

516
517// EncodeValues encodes values with leading underscores
518func (m customEncodedInt) EncodeValues(key string, v *url.Values) error {
519 v.Set(key, fmt.Sprintf("_%d", m))
520 return nil
521}
522
523func TestValues_CustomEncodingInt(t *testing.T) {
524 var zero customEncodedInt = 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected