MCPcopy Create free account
hub / github.com/gavv/httpexpect / selectQueryEncoder

Function selectQueryEncoder

request.go:1397–1407  ·  view source on GitHub ↗
(object interface{})

Source from the content-addressed store, hash-verified

1395}
1396
1397func selectQueryEncoder(object interface{}) QueryEncoder {
1398 value := reflect.Indirect(reflect.ValueOf(object))
1399
1400 if value.Kind() == reflect.Struct {
1401 // Use google/go-querystring.
1402 return QueryEncoderGoogle
1403 }
1404
1405 // Use ajg/form.
1406 return QueryEncoderForm
1407}
1408
1409// WithQueryString parses given query string and adds it to request URL.
1410//

Callers 1

WithQueryObjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…