reflect.StructTag.Get (method)
23 uses
reflect (current package)
type.go#L1045: func (tag StructTag) Get(key string) string {
encoding/asn1
asn1.go#L980: 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#L1162: tag := sf.Tag.Get("json")
encoding/xml
typeinfo.go#L63: if (!f.IsExported() && !f.Anonymous) || f.Tag.Get("xml") == "-" {
typeinfo.go#L117: tag := f.Tag.Get("xml")
typeinfo.go#L168: f.Name, typ, f.Tag.Get("xml"))
typeinfo.go#L175: f.Name, typ, f.Tag.Get("xml"))
typeinfo.go#L313: return &TagPathError{typ, f1.Name, f1.Tag.Get("xml"), f2.Name, f2.Tag.Get("xml")}
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")