diff --git a/src/pkg/rpc/debug.go b/src/pkg/rpc/debug.go index 32dc8a18ba2..e0602e676f2 100644 --- a/src/pkg/rpc/debug.go +++ b/src/pkg/rpc/debug.go @@ -10,33 +10,33 @@ package rpc */ import ( + "exp/template" "fmt" "http" "sort" - "template" ) const debugText = ` Services - {.repeated section @} + {{range .}}
- Service {Name} + Service {{.Name}}
- {.repeated section Method} + {{range .Method}} - - + + - {.end} + {{end}}
MethodCalls
{Name}({Type.ArgType}, {Type.ReplyType}) os.Error{Type.NumCalls}{{.Name}}({{.Type.ArgType}}, {{.Type.ReplyType}}) os.Error{{.Type.NumCalls}}
- {.end} + {{end}} ` -var debug = template.MustParse(debugText, nil) +var debug = template.New("RPC debug").MustParse(debugText) type debugMethod struct { Type *methodType