reflect.StructTag.Get (method)
35 uses
reflect (current package)
type.go#L1176: func (tag StructTag) Get(key string) string {
encoding/asn1
asn1.go#L935: innerOffset, err = parseField(val.Field(i), innerBytes, innerOffset, parseFieldParameters(field.Tag.Get("asn1")))
marshal.go#L523: return makeField(v.Field(startingField), parseFieldParameters(t.Field(startingField).Tag.Get("asn1")))
marshal.go#L527: m[i], err = makeField(v.Field(i+startingField), parseFieldParameters(t.Field(i+startingField).Tag.Get("asn1")))
encoding/json
encode.go#L1259: 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#L320: return &TagPathError{typ, f1.Name, f1.Tag.Get("xml"), f2.Name, f2.Tag.Get("xml")}
github.com/go-pg/pg/v10/orm
table.go#L265: if f.Tag.Get("sql") == "-" || f.Tag.Get("pg") == "-" {
table.go#L275: pgTag := tagparser.Parse(f.Tag.Get("pg"))
table.go#L297: pgTag := tagparser.Parse(f.Tag.Get("pg"))
table.go#L352: pgTag := tagparser.Parse(f.Tag.Get("pg"))
table.go#L567: pgTag := tagparser.Parse(field.Field.Tag.Get("pg"))
github.com/golang/protobuf/proto
properties.go#L206: p.MapKeyProp.Init(nil, "Key", f.Tag.Get("protobuf_key"), nil)
properties.go#L208: p.MapValProp.Init(nil, "Value", f.Tag.Get("protobuf_val"), nil)
properties.go#L239: tagField := f.Tag.Get("protobuf")
properties.go#L242: tagOneof := f.Tag.Get("protobuf_oneof")
properties.go#L283: p.Prop.Parse(f.Tag.Get("protobuf"))
github.com/vmihailenco/msgpack/v5
types.go#L178: tagStr := f.Tag.Get(defaultStructTag)
types.go#L180: tagStr = f.Tag.Get(fallbackTag)
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#L237: if tag := f.Tag.Get("protobuf"); tag != "" {
legacy_message.go#L238: tagKey := f.Tag.Get("protobuf_key")
legacy_message.go#L239: tagVal := f.Tag.Get("protobuf_val")
legacy_message.go#L242: if tag := f.Tag.Get("protobuf_oneof"); tag != "" {
legacy_message.go#L254: if tag := f.Tag.Get("protobuf"); tag != "" {
message.go#L179: for _, s := range strings.Split(f.Tag.Get("protobuf"), ",") {
message.go#L186: if s := f.Tag.Get("protobuf_oneof"); len(s) > 0 {
message.go#L207: for _, s := range strings.Split(f.Tag.Get("protobuf"), ",") {