Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NumFields (0.19 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)
Back to top