chore: fmt go files
Kim committed
Oct 28, 2025 at 12:21 UTC
f1f5814efa031ca2754f24efad213c656bdb6d97
2 files changed
+13
-13
cmd/client/view.go
+12
-12
@@ -10,11 +10,11 @@ import (
10
)
11
12
type clientViewData struct {
13
- NodeID string
14
- Name string
15
- ALPNs []string
16
- Bootstraps []string
17
- Relays []string
13
+ NodeID string
14
+ Name string
15
+ ALPNs []string
16
+ Bootstraps []string
17
+ Relays []string
18
}
19
20
// serveClientHTTP starts a tiny admin UI for the client.
@@ -31,13 +31,13 @@ func serveClientHTTP(ctx context.Context, addr string, nodeID string, name strin
31
http.NotFound(w, r)
32
return
33
}
34
- data := clientViewData{
35
- NodeID: nodeID,
36
- Name: name,
37
- ALPNs: alpns,
38
- Bootstraps: bootstraps,
39
- Relays: getRelays(),
40
- }
34
+ data := clientViewData{
35
+ NodeID: nodeID,
36
+ Name: name,
37
+ ALPNs: alpns,
38
+ Bootstraps: bootstraps,
39
+ Relays: getRelays(),
40
+ }
41
w.Header().Set("Content-Type", "text/html; charset=utf-8")
42
if err := clientTmpl.Execute(w, data); err != nil {
43
log.Error().Err(err).Msg("[client] render admin index")
cmd/server/view.go
+1
-1
@@ -1,4 +1,4 @@
1
-package main
1
+package main
2
3
import (
4
"context"