Add ResponseWriter.Flush function

This commit is contained in:
Adnan Maolood
2020-12-18 13:15:17 -05:00
parent a912ef996a
commit 61b417a5c4
2 changed files with 8 additions and 2 deletions

View File

@@ -37,7 +37,8 @@ func main() {
func stream(w *gemini.ResponseWriter, r *gemini.Request) {
for {
fmt.Fprintln(w, time.Now())
fmt.Fprintln(w, time.Now().UTC())
w.Flush()
time.Sleep(time.Second)
}
}