We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c33cff commit ee039e7Copy full SHA for ee039e7
README.md
@@ -58,6 +58,9 @@ func main() {
58
// HelloWorld ...
59
func HelloWorld(c lars.Context) {
60
c.Response().Write([]byte("Hello World"))
61
+
62
+ // this will also work, Response() complies with http.ResponseWriter interface
63
+ fmt.Fprint(c.Response(), "Hello World")
64
}
65
```
66
examples/hello-world/main.go
@@ -20,4 +20,7 @@ func main() {
20
21
22
23
24
25
+ // fmt.Fprint(c.Response(), "Hello World")
26
0 commit comments