reflect.StructField.Tag (field)
21 uses
reflect (current package)
type.go#L1010: Tag StructTag // field tag string
type.go#L1114: f.Tag = StructTag(tag)
type.go#L2544: Name: newName(field.Name, string(field.Tag), field.IsExported(), field.Anonymous),
encoding/asn1
asn1.go#L932: innerOffset, err = parseField(val.Field(i), innerBytes, innerOffset, parseFieldParameters(field.Tag.Get("asn1")))
marshal.go#L520: return makeField(v.Field(startingField), parseFieldParameters(t.Field(startingField).Tag.Get("asn1")))
marshal.go#L524: m[i], err = makeField(v.Field(i+startingField), parseFieldParameters(t.Field(i+startingField).Tag.Get("asn1")))
encoding/json
encode.go#L1134: tag := sf.Tag.Get("json")
github.com/google/go-cmp/cmp/internal/value
name.go#L112: if sf.Tag != "" {
name.go#L114: b = strconv.AppendQuote(b, string(sf.Tag))
google.golang.org/protobuf/internal/impl
legacy_message.go#L131: if f.Tag.Get("protobuf") != "" || f.Tag.Get("protobuf_oneof") != "" || strings.HasPrefix(f.Name, "XXX_") {
legacy_message.go#L194: if tag := f.Tag.Get("protobuf"); tag != "" {
legacy_message.go#L243: if tag := f.Tag.Get("protobuf"); tag != "" {
legacy_message.go#L244: tagKey := f.Tag.Get("protobuf_key")
legacy_message.go#L245: tagVal := f.Tag.Get("protobuf_val")
legacy_message.go#L248: if tag := f.Tag.Get("protobuf_oneof"); tag != "" {
legacy_message.go#L261: if tag := f.Tag.Get("protobuf"); tag != "" {
message.go#L181: for _, s := range strings.Split(f.Tag.Get("protobuf"), ",") {
message.go#L188: if s := f.Tag.Get("protobuf_oneof"); len(s) > 0 {
message.go#L214: for _, s := range strings.Split(f.Tag.Get("protobuf"), ",") {
message_opaque.go#L33: pgt := t.Field(0).Tag.Get("protogen")