MCPcopy Create free account
hub / github.com/brimdata/super / jsonFieldName

Function jsonFieldName

pkg/unpack/tag.go:34–37  ·  view source on GitHub ↗
(f reflect.StructField)

Source from the content-addressed store, hash-verified

32}
33
34func jsonFieldName(f reflect.StructField) (string, bool) {
35 s, ok, _ := parseTag(tagJSON, f)
36 return s, ok
37}
38
39// structToRule looks through the tags in a struct to (1) make sure there
40// are no duplicate tags since package json doesn't do this and it results

Callers 1

unpackStructMethod · 0.85

Calls 1

parseTagFunction · 0.85

Tested by

no test coverage detected