reflect.StructField.Name (field)
86 uses
reflect (current package)
map.go#L128: Name: "Ctrl",
map.go#L132: Name: "Keys",
map.go#L136: Name: "Elems",
map.go#L153: Name: "Key",
map.go#L157: Name: "Elem",
map.go#L165: Name: "Ctrl",
map.go#L169: Name: "Slots",
type.go#L1067: Name string
type.go#L1173: f.Name = p.Name.Name()
type.go#L1897: Name: "FuncType",
type.go#L1901: Name: "Args",
type.go#L2223: if field.Name == "_" {
type.go#L2230: if field.Name == "_" || !isRegularMemory(field.Type) || isPaddedField(t, i) {
type.go#L2273: if field.Name == "" {
type.go#L2276: if !isValidFieldName(field.Name) {
type.go#L2456: {Name: "S", Type: TypeOf(structType{})},
type.go#L2457: {Name: "U", Type: TypeOf(uncommonType{})},
type.go#L2458: {Name: "M", Type: ArrayOf(len(methods), TypeOf(methods[0]))},
type.go#L2603: panic("reflect.StructOf: field \"" + field.Name + "\" is anonymous but has PkgPath set")
type.go#L2609: c := field.Name[0]
type.go#L2611: panic("reflect.StructOf: field \"" + field.Name + "\" is unexported but missing PkgPath")
type.go#L2617: Name: newName(field.Name, string(field.Tag), field.IsExported(), field.Anonymous),
value.go#L1738: if !v.Field(i).IsZero() && v.Type().Field(i).Name != "_" {
visiblefields.go#L36: if f.Name == "" {
visiblefields.go#L70: if oldIndex, ok := w.byName[f.Name]; ok {
visiblefields.go#L77: old.Name = ""
visiblefields.go#L81: old.Name = ""
visiblefields.go#L91: w.byName[f.Name] = len(w.fields)
encoding/binary
binary.go#L862: if v := v.Field(i); v.CanSet() || t.Field(i).Name != "_" {
binary.go#L927: if v := v.Field(i); v.CanSet() || t.Field(i).Name != "_" {
encoding/json
v2_decode.go#L173: return "json: cannot unmarshal object key " + strconv.Quote(e.Key) + " into unexported field " + e.Field.Name + " of type " + e.Type.String()
encoding/json/v2
fields.go#L129: serr = orErrorf(serr, t, "embedded Go struct field %s of non-struct type must be explicitly given a JSON name", sf.Name)
fields.go#L141: serr = orErrorf(serr, t, "Go struct field %s cannot have any options other than `embed` specified", sf.Name)
fields.go#L153: serr = orErrorf(serr, t, "embedded Go struct field %s of type %s must not implement marshal or unmarshal methods", sf.Name, tf)
fields.go#L165: serr = orErrorf(serr, t, "embedded Go struct field %s is not exported", sf.Name)
fields.go#L176: serr = orErrorf(serr, t, "embedded map field %s of type %s must have a string key that does not implement marshal or unmarshal methods", sf.Name, tf)
fields.go#L182: serr = orErrorf(serr, t, "embedded Go struct field %s of type %s must be a Go struct, Go map of string key, or jsontext.Value", sf.Name, tf)
fields.go#L189: serr = orErrorf(serr, t, "embedded Go struct fields %s and %s cannot both be a Go map or jsontext.Value", t.Field(embeddedFallbackIndex).Name, sf.Name)
fields.go#L207: serr = orErrorf(serr, t, "Go struct field %s is not exported", sf.Name)
fields.go#L214: serr = orErrorf(serr, t, "Go struct field %s is not exported for method calls", sf.Name)
fields.go#L249: serr = orErrorf(serr, t, "Go struct fields %s and %s conflict over JSON object name %q", t.Field(j).Name, sf.Name, f.name)
fields.go#L259: fs.errUnsupportedFormat = &SemanticError{GoType: t, Err: fmt.Errorf("Go struct field %s has unsupported `format` tag option", sf.Name)}
fields.go#L430: err = cmp.Or(err, fmt.Errorf("unexported Go struct field %s cannot have non-ignored `json:%q` tag", sf.Name, tag))
fields.go#L436: out.name = sf.Name // always starts with an uppercase character
fields.go#L451: err = cmp.Or(err, fmt.Errorf("Go struct field %s has malformed `json` tag: %v", sf.Name, err2))
fields.go#L455: err = cmp.Or(err, fmt.Errorf("Go struct field %s has JSON object name %q with invalid UTF-8", sf.Name, name))
fields.go#L474: err = cmp.Or(err, fmt.Errorf("Go struct field %s has malformed `json` tag: invalid character %q before next option (expecting ',')", sf.Name, tag[0]))
fields.go#L478: err = cmp.Or(err, fmt.Errorf("Go struct field %s has malformed `json` tag: invalid trailing ',' character", sf.Name))
fields.go#L486: err = cmp.Or(err, fmt.Errorf("Go struct field %s has malformed `json` tag: %v", sf.Name, err2))
fields.go#L492: err = cmp.Or(err, fmt.Errorf("Go struct field %s has `format` tag option that was not specified last", sf.Name))
fields.go#L494: err = cmp.Or(err, fmt.Errorf("Go struct field %s has unnecessarily quoted appearance of `%s` tag option; specify `%s` instead", sf.Name, rawOpt, opt))
fields.go#L499: err = cmp.Or(err, fmt.Errorf("Go struct field %s is missing value for `case` tag option; specify `case:ignore` or `case:strict` instead", sf.Name))
fields.go#L505: err = cmp.Or(err, fmt.Errorf("Go struct field %s has malformed value for `case` tag option: %v", sf.Name, err2))
fields.go#L511: err = cmp.Or(err, fmt.Errorf("Go struct field %s has unnecessarily quoted appearance of `case:%s` tag option; specify `case:%s` instead", sf.Name, rawOpt, opt))
fields.go#L519: err = cmp.Or(err, fmt.Errorf("Go struct field %s has unknown `case:%s` tag value", sf.Name, rawOpt))
fields.go#L531: err = cmp.Or(err, fmt.Errorf("Go struct field %s is missing value for `format` tag option", sf.Name))
fields.go#L537: err = cmp.Or(err, fmt.Errorf("Go struct field %s has malformed value for `format` tag option: %v", sf.Name, err2))
fields.go#L540: err = cmp.Or(err, fmt.Errorf("Go struct field %s cannot have empty value for `format` tag option", sf.Name))
fields.go#L552: err = cmp.Or(err, fmt.Errorf("Go struct field %s has invalid appearance of `%s` tag option; specify `%s` instead", sf.Name, opt, normOpt))
fields.go#L563: err = cmp.Or(err, fmt.Errorf("Go struct field %s cannot have both `case:ignore` and `case:strict` tag options", sf.Name))
fields.go#L565: err = cmp.Or(err, fmt.Errorf("Go struct field %s has duplicate appearance of `%s` tag option", sf.Name, rawOpt))
encoding/xml
typeinfo.go#L96: if f.Name == xmlName {
typeinfo.go#L153: if f.Name == xmlName || tag != "" && mode != fAttr {
typeinfo.go#L168: f.Name, typ, f.Tag.Get("xml"))
typeinfo.go#L175: f.Name, typ, f.Tag.Get("xml"))
typeinfo.go#L178: if f.Name == xmlName {
typeinfo.go#L193: finfo.name = f.Name
typeinfo.go#L201: parents[0] = f.Name
typeinfo.go#L204: return nil, fmt.Errorf("xml: trailing '>' in field %s of type %s", f.Name, typ)
typeinfo.go#L222: finfo.name, typ, f.Name, xmlname.name, ftyp)
typeinfo.go#L240: if f.Name != xmlName {
typeinfo.go#L313: return &TagPathError{typ, f1.Name, f1.Tag.Get("xml"), f2.Name, f2.Tag.Get("xml")}
fmt
print.go#L836: if name := f.Type().Field(i).Name; name != "" {
github.com/jackc/pgx/v5
named_args.go#L144: return "", false, fmt.Errorf("field %s has empty `%s` tag", sf.Name, structTagKey)
named_args.go#L149: return sf.Name, true, nil
rows.go#L813: colName = sf.Name
go/ast
print.go#L221: if name := t.Field(i).Name; IsExported(name) {
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_") {
message.go#L160: switch f := t.Field(i); f.Name {
internal/buildcfg
exp.go#L105: names[strings.ToLower(rt.Field(i).Name)] = field.SetBool
exp.go#L176: name := strings.ToLower(rt.Field(i).Name)
net/http/internal/http2
errors.go#L110: if sf.Name != df.Name || !sf.Type.ConvertibleTo(df.Type) {