Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 46 for structfield2 (0.2 sec)

  1. src/encoding/json/bench_test.go

    	if testenv.Builder() != "" {
    		maxTypes = 1e3 // restrict cache sizes on builders
    	}
    
    	// Dynamically generate many new types.
    	types := make([]reflect.Type, maxTypes)
    	fs := []reflect.StructField{{
    		Type:  reflect.TypeFor[string](),
    		Index: []int{0},
    	}}
    	for i := range types {
    		fs[0].Name = fmt.Sprintf("TypeFieldsCache%d", i)
    		types[i] = reflect.StructOf(fs)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:00:17 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. src/go/internal/gccgoimporter/testdata/v1reflect.gox

     func (d <type 29>) String () <type -16>;
    >; IsVariadic () <type -15>; Elem () <type 26>; Field (i <type -11>) <type 30 "StructField" <type 31 struct { Name <type -16>; PkgPath <type -16>; Type <type 26>; Tag <type 32 "StructTag" <type -16>
     func (tag <type 32>) Get (key <type -16>) <type -16>;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  3. src/encoding/json/decode.go

    	// Decoding into nil interface? Switch to non-reflect code.
    	if v.Kind() == reflect.Interface && v.NumMethod() == 0 {
    		oi := d.objectInterface()
    		v.Set(reflect.ValueOf(oi))
    		return nil
    	}
    
    	var fields structFields
    
    	// Check type of target:
    	//   struct or
    	//   map[T1]T2 where T1 is string, an integer type,
    	//             or an encoding.TextUnmarshaler
    	switch v.Kind() {
    	case reflect.Map:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  4. api/go1.18.txt

    pkg debug/buildinfo, func ReadFile(string) (*debug.BuildInfo, error)
    pkg debug/buildinfo, type BuildInfo = debug.BuildInfo
    pkg debug/dwarf, type BasicType struct, DataBitOffset int64
    pkg debug/dwarf, type StructField struct, DataBitOffset int64
    pkg debug/elf, const R_PPC64_RELATIVE = 22
    pkg debug/elf, const R_PPC64_RELATIVE R_PPC64
    pkg debug/plan9obj, var ErrNoSymbols error
    pkg go/ast, method (*IndexListExpr) End() token.Pos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  5. api/go1.7.txt

    pkg os/user, type Group struct, Gid string
    pkg os/user, type Group struct, Name string
    pkg os/user, type UnknownGroupError string
    pkg os/user, type UnknownGroupIdError string
    pkg reflect, func StructOf([]StructField) Type
    pkg reflect, method (StructTag) Lookup(string) (string, bool)
    pkg runtime, func CallersFrames([]uintptr) *Frames
    pkg runtime, func KeepAlive(interface{})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 28 15:08:11 UTC 2016
    - 13.6K bytes
    - Viewed (0)
  6. src/go/printer/testdata/declarations.input

    	}
    
    	UncommonType struct {
    		Name, PkgPath int
    	}
    	CommonType struct {
    		Size, Hash, Alg, Align, FieldAlign, String, UncommonType int
    	}
    	Type struct {
    		Typ, Ptr int
    	}
    	StructField struct {
    		Name, PkgPath, Typ, Tag, Offset int
    	}
    	StructType struct {
    		Fields int
    	}
    	PtrType struct {
    		Elem int
    	}
    	SliceType struct {
    		Elem int
    	}
    	ArrayType struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  7. src/go/printer/testdata/declarations.golden

    	}
    
    	UncommonType	struct {
    		Name, PkgPath int
    	}
    	CommonType	struct {
    		Size, Hash, Alg, Align, FieldAlign, String, UncommonType int
    	}
    	Type	struct {
    		Typ, Ptr int
    	}
    	StructField	struct {
    		Name, PkgPath, Typ, Tag, Offset int
    	}
    	StructType	struct {
    		Fields int
    	}
    	PtrType	struct {
    		Elem int
    	}
    	SliceType	struct {
    		Elem int
    	}
    	ArrayType	struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"QualType.Type", Field, 0},
    		{"Reader", Type, 0},
    		{"StructField", Type, 0},
    		{"StructField.BitOffset", Field, 0},
    		{"StructField.BitSize", Field, 0},
    		{"StructField.ByteOffset", Field, 0},
    		{"StructField.ByteSize", Field, 0},
    		{"StructField.DataBitOffset", Field, 18},
    		{"StructField.Name", Field, 0},
    		{"StructField.Type", Field, 0},
    		{"StructType", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  9. src/encoding/gob/gobencdec_test.go

    	enc := NewEncoder(b)
    	typ := reflect.TypeFor[int]()
    	nested := reflect.ArrayOf(1, typ)
    	for i := 0; i < 100; i++ {
    		nested = reflect.ArrayOf(1, nested)
    	}
    	badStruct := reflect.New(reflect.StructOf([]reflect.StructField{{Name: "F", Type: nested}}))
    	enc.Encode(badStruct.Interface())
    	dec := NewDecoder(b)
    	var output struct{ Hello int }
    	expectedErr := "invalid nesting depth"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  10. pkg/apis/core/v1/defaults_test.go

    		switch {
    		case visit.value.Kind() == reflect.Struct:
    			for fi := 0; fi < visit.value.NumField(); fi++ {
    				structField := visit.value.Type().Field(fi)
    				valueField := visit.value.Field(fi)
    				if valueField.CanSet() {
    					toVisit = append(toVisit, testPath{path: visit.path + "." + structField.Name, value: valueField})
    				}
    			}
    
    		case visit.value.Kind() == reflect.Slice:
    			if !visit.value.IsNil() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
Back to top