Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for emitStructType (1.53 sec)

  1. src/cmd/api/main_test.go

    		var buf bytes.Buffer
    		buf.WriteString(name)
    		w.writeTypeParams(&buf, tparams, true)
    		name = buf.String()
    	}
    	switch typ := typ.Underlying().(type) {
    	case *types.Struct:
    		w.emitStructType(name, typ)
    	case *types.Interface:
    		w.emitIfaceType(name, typ)
    		return // methods are handled by emitIfaceType
    	default:
    		w.emitf("type %s %s", name, w.typeString(typ.Underlying()))
    	}
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Feb 20 03:25:33 UTC 2025
    - 31.4K bytes
    - Viewed (0)
Back to top