Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NumFields (0.09 sec)

  1. src/cmd/api/main_test.go

    }
    
    func (w *Walker) emitStructType(name string, typ *types.Struct) {
    	typeStruct := fmt.Sprintf("type %s struct", name)
    	w.emitf("%s", typeStruct)
    	defer w.pushScope(typeStruct)()
    
    	for i := 0; i < typ.NumFields(); i++ {
    		f := typ.Field(i)
    		if !f.Exported() {
    			continue
    		}
    		typ := f.Type()
    		if f.Anonymous() {
    			if w.isDeprecated(f) {
    				w.emitf("embedded %s //deprecated", w.typeString(typ))
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  2. api/go1.5.txt

    pkg go/types, method (*StdSizes) Offsetsof([]*Var) []int64
    pkg go/types, method (*StdSizes) Sizeof(Type) int64
    pkg go/types, method (*Struct) Field(int) *Var
    pkg go/types, method (*Struct) NumFields() int
    pkg go/types, method (*Struct) String() string
    pkg go/types, method (*Struct) Tag(int) string
    pkg go/types, method (*Struct) Underlying() Type
    pkg go/types, method (*Tuple) At(int) *Var
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
Back to top