aboutsummaryrefslogtreecommitdiff
path: root/examples/stream.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-09 09:45:10 -0500
committerAdnan Maolood <[email protected]>2021-02-09 09:46:18 -0500
commitf6824bd813e1e9fbc78bb2b0a167926de6dab7ed (patch)
tree9b7c85e5b1d6ff20818949859478273ddbc597b5 /examples/stream.go
parentUse plain integers to represent status codes (diff)
downloadgo-gemini-f6824bd813e1e9fbc78bb2b0a167926de6dab7ed.tar.xz
go-gemini-f6824bd813e1e9fbc78bb2b0a167926de6dab7ed.zip
Make ResponseWriter an interface
Diffstat (limited to 'examples/stream.go')
-rw-r--r--examples/stream.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stream.go b/examples/stream.go
index 1a292fd..0c302bd 100644
--- a/examples/stream.go
+++ b/examples/stream.go
@@ -38,7 +38,7 @@ func main() {
}
// stream writes an infinite stream to w.
-func stream(w *gemini.ResponseWriter, r *gemini.Request) {
+func stream(w gemini.ResponseWriter, r *gemini.Request) {
ch := make(chan string)
ctx, cancel := context.WithCancel(context.Background())