MCPcopy Index your code
hub / github.com/google/go-querystring / parseTag

Function parseTag

query/encode.go:349–352  ·  view source on GitHub ↗

parseTag splits a struct field's url tag into its name and comma-separated options.

(tag string)

Source from the content-addressed store, hash-verified

347// parseTag splits a struct field's url tag into its name and comma-separated
348// options.
349func parseTag(tag string) (string, tagOptions) {
350 s := strings.Split(tag, ",")
351 return s[0], s[1:]
352}
353
354// Contains checks whether the tagOptions contains the specified option.
355func (o tagOptions) Contains(option string) bool {

Callers 2

TestParseTagFunction · 0.85
reflectValueFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParseTagFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…