diff options
| author | Adnan Maolood <[email protected]> | 2021-02-09 09:45:10 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-09 09:46:18 -0500 |
| commit | f6824bd813e1e9fbc78bb2b0a167926de6dab7ed (patch) | |
| tree | 9b7c85e5b1d6ff20818949859478273ddbc597b5 /examples/stream.go | |
| parent | Use plain integers to represent status codes (diff) | |
| download | go-gemini-f6824bd813e1e9fbc78bb2b0a167926de6dab7ed.tar.xz go-gemini-f6824bd813e1e9fbc78bb2b0a167926de6dab7ed.zip | |
Make ResponseWriter an interface
Diffstat (limited to 'examples/stream.go')
| -rw-r--r-- | examples/stream.go | 2 |
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()) |