summaryrefslogtreecommitdiff
path: root/src/pkg/rpc/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/rpc/debug.go')
-rw-r--r--src/pkg/rpc/debug.go27
1 files changed, 19 insertions, 8 deletions
diff --git a/src/pkg/rpc/debug.go b/src/pkg/rpc/debug.go
index 0bf39a227..f4ac8b4ab 100644
--- a/src/pkg/rpc/debug.go
+++ b/src/pkg/rpc/debug.go
@@ -17,8 +17,7 @@ import (
"template";
)
-const debugText =
- `<html>
+const debugText = `<html>
<body>
<title>Services</title>
{.repeated section @}
@@ -55,13 +54,25 @@ type debugService struct {
type serviceArray []debugService
-func (s serviceArray) Len() int { return len(s) }
-func (s serviceArray) Less(i, j int) bool { return s[i].name < s[j].name }
-func (s serviceArray) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
+func (s serviceArray) Len() int {
+ return len(s);
+}
+func (s serviceArray) Less(i, j int) bool {
+ return s[i].name < s[j].name;
+}
+func (s serviceArray) Swap(i, j int) {
+ s[i], s[j] = s[j], s[i];
+}
-func (m methodArray) Len() int { return len(m) }
-func (m methodArray) Less(i, j int) bool { return m[i].name < m[j].name }
-func (m methodArray) Swap(i, j int) { m[i], m[j] = m[j], m[i] }
+func (m methodArray) Len() int {
+ return len(m);
+}
+func (m methodArray) Less(i, j int) bool {
+ return m[i].name < m[j].name;
+}
+func (m methodArray) Swap(i, j int) {
+ m[i], m[j] = m[j], m[i];
+}
// Runs at /debug/rpc
func debugHTTP(c *http.Conn, req *http.Request) {