Skip to content

Commit 91bb3ed

Browse files
committed
Try to fix the pygment indentation
1 parent 15a41b4 commit 91bb3ed

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

helloworld/main.go

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,17 @@ import (
1313
)
1414

1515
type Message struct {
16-
Body string
16+
Body string
1717
}
1818

1919
func main() {
2020
handler := rest.ResourceHandler{}
2121
handler.SetRoutes(
22-
&rest.Route{
23-
"GET",
24-
"/message",
25-
func(w rest.ResponseWriter, req *rest.Request) {
26-
w.WriteJson(&Message{
27-
Body: "Hello World!",
28-
})
29-
},
30-
},
22+
&rest.Route{"GET", "/message", func(w rest.ResponseWriter, req *rest.Request) {
23+
w.WriteJson(&Message{
24+
Body: "Hello World!",
25+
})
26+
}},
3127
)
3228
http.ListenAndServe(":8080", &handler)
3329
}

0 commit comments

Comments
 (0)