MCPcopy Create free account
hub / github.com/stretchr/objx / MustFromURLQuery

Function MustFromURLQuery

map.go:208–214  ·  view source on GitHub ↗

MustFromURLQuery generates a new Obj by parsing the specified query. For queries with multiple values, the first value is selected. Panics if it encounters an error

(query string)

Source from the content-addressed store, hash-verified

206//
207// Panics if it encounters an error
208func MustFromURLQuery(query string) Map {
209 o, err := FromURLQuery(query)
210 if err != nil {
211 panic("objx: MustFromURLQuery failed with error: " + err.Error())
212 }
213 return o
214}

Callers 2

TestMapMustFromURLQueryFunction · 0.92

Calls 2

FromURLQueryFunction · 0.85
ErrorMethod · 0.45

Tested by 2

TestMapMustFromURLQueryFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…