- Sort Score
- Result 10 results
- Languages All
Results 31 - 35 of 35 for NumField (0.13 sec)
-
operator/pkg/translate/translate.go
if !util.IsNilOrInvalidValue(vv.Elem()) { errs = util.AppendErrs(errs, t.ProtoToHelmValues(vv.Elem().Interface(), root, path)) } case reflect.Struct: scope.Debug("Struct") for i := 0; i < vv.NumField(); i++ { fieldName := vv.Type().Field(i).Name fieldValue := vv.Field(i) scope.Debugf("Checking field %s", fieldName) if a, ok := vv.Type().Field(i).Tag.Lookup("json"); ok && a == "-" { continue }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 19:43:09 UTC 2024 - 36.3K bytes - Viewed (0) -
src/encoding/json/encode.go
for _, f := range current { if visited[f.typ] { continue } visited[f.typ] = true // Scan f.typ for fields to include. for i := 0; i < f.typ.NumField(); i++ { sf := f.typ.Field(i) if sf.Anonymous { t := sf.Type if t.Kind() == reflect.Pointer { t = t.Elem() } if !sf.IsExported() && t.Kind() != reflect.Struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 36.2K bytes - Viewed (0) -
src/cmd/go/internal/list/list.go
v := reflect.New(reflect.TypeOf(x).Elem()).Elem() // do is always called with a non-nil pointer. v.Set(reflect.ValueOf(x).Elem()) for i := 0; i < v.NumField(); i++ { if !listJsonFields.needAny(v.Type().Field(i).Name) { v.Field(i).SetZero() } } x = v.Interface() } b, err := json.MarshalIndent(x, "", "\t") if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 33.3K bytes - Viewed (0) -
src/fmt/print.go
p.buf.writeByte('}') } else { p.buf.writeByte(']') } case reflect.Struct: if p.fmt.sharpV { p.buf.writeString(f.Type().String()) } p.buf.writeByte('{') for i := 0; i < f.NumField(); i++ { if i > 0 { if p.fmt.sharpV { p.buf.writeString(commaSpaceString) } else { p.buf.writeByte(' ') } } if p.fmt.plusV || p.fmt.sharpV {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:22:43 UTC 2024 - 31.8K bytes - Viewed (0) -
src/encoding/gob/decode.go
return } value = decAlloc(value) engine := *enginePtr if st := base; st.Kind() == reflect.Struct && ut.externalDec == 0 { wt := dec.wireType[wireId] if engine.numInstr == 0 && st.NumField() > 0 && wt != nil && len(wt.StructT.Field) > 0 { name := base.Name() errorf("type mismatch: no fields matched compiling decoder for %s", name) } dec.decodeStruct(engine, value) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:10:23 UTC 2023 - 40.1K bytes - Viewed (0)