MCPcopy Create free account

hub / github.com/google/go-querystring / functions

Functions25 in github.com/google/go-querystring

↓ 11 callersMethodContains
Contains checks whether the tagOptions contains the specified option.
query/encode.go:355
↓ 9 callersFunctiontestValue
test that Values(input) matches want. If not, report an error on t.
query/encode_test.go:19
↓ 4 callersFunctionvalueString
valueString returns the string representation of a value.
query/encode.go:279
↓ 3 callersFunctionValues
Values returns the url.Values encoding of v. Values expects to be passed a struct, and traverses it recursively using the following encoding rules.
query/encode.go:125
↓ 2 callersFunctionisEmptyValue
isEmptyValue checks if a value should be considered empty for the purposes of omitting fields with the "omitempty" option.
query/encode.go:316
↓ 2 callersFunctionparseTag
parseTag splits a struct field's url tag into its name and comma-separated options.
query/encode.go:349
↓ 1 callersMethodEncodeValues
(key string, v *url.Values)
query/encode.go:39
↓ 1 callersMethodIsZero
()
query/encode.go:333
↓ 1 callersFunctionreflectValue
reflectValue populates the values parameter from the struct fields in val. Embedded structs are followed recursively (using the rules defined in the V
query/encode.go:151
MethodEncodeValues
EncodeValues using key name of the form "{key}.N" where N increments with each value. A value of "err" will return an error.
query/encode_test.go:439
MethodEncodeValues
EncodeValues encodes values with leading underscores
query/encode_test.go:518
MethodEncodeValues
EncodeValues encodes a 0 as false, 1 as true, and nil as unknown. All other values cause an error.
query/encode_test.go:587
FunctionTestIsEmptyValue
(t *testing.T)
query/encode_test.go:664
FunctionTestParseTag
(t *testing.T)
query/encode_test.go:729
FunctionTestValues_BasicTypes
(t *testing.T)
query/encode_test.go:29
FunctionTestValues_CustomEncodingInt
(t *testing.T)
query/encode_test.go:523
FunctionTestValues_CustomEncodingPointer
Test behavior when encoding is defined for a pointer of a custom type. Custom type should be able to encode values for nil pointers.
query/encode_test.go:598
FunctionTestValues_CustomEncodingSlice
(t *testing.T)
query/encode_test.go:449
FunctionTestValues_CustomEncoding_Error
One of the few ways reflectValues will return an error is if a custom encoder returns an error. Test all of the various ways that can happen.
query/encode_test.go:489
FunctionTestValues_EmbeddedStructs
(t *testing.T)
query/encode_test.go:372
FunctionTestValues_InvalidInput
(t *testing.T)
query/encode_test.go:427
FunctionTestValues_NestedTypes
(t *testing.T)
query/encode_test.go:275
FunctionTestValues_OmitEmpty
(t *testing.T)
query/encode_test.go:332
FunctionTestValues_Pointers
(t *testing.T)
query/encode_test.go:100
FunctionTestValues_Slices
(t *testing.T)
query/encode_test.go:136