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

Method Contains

query/encode.go:355–362  ·  view source on GitHub ↗

Contains checks whether the tagOptions contains the specified option.

(option string)

Source from the content-addressed store, hash-verified

353
354// Contains checks whether the tagOptions contains the specified option.
355func (o tagOptions) Contains(option string) bool {
356 for _, s := range o {
357 if s == option {
358 return true
359 }
360 }
361 return false
362}

Callers 3

TestParseTagFunction · 0.80
reflectValueFunction · 0.80
valueStringFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestParseTagFunction · 0.64