Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for writeTypeParams (0.16 sec)

  1. src/cmd/api/main_test.go

    	default:
    		panic(fmt.Sprintf("unknown type %T", typ))
    	}
    }
    
    func (w *Walker) writeSignature(buf *bytes.Buffer, sig *types.Signature) {
    	if tparams := sig.TypeParams(); tparams != nil {
    		w.writeTypeParams(buf, tparams, true)
    	}
    	w.writeParams(buf, sig.Params(), sig.Variadic())
    	switch res := sig.Results(); res.Len() {
    	case 0:
    		// nothing to do
    	case 1:
    		buf.WriteByte(' ')
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top