forked from
tangled.org/core
fork
Configure Feed
Select the types of activity you want to include in your feed.
Monorepo for Tangled
fork
Configure Feed
Select the types of activity you want to include in your feed.
1package service
2
3import (
4 "io"
5 "net/http"
6)
7
8func newWriteFlusher(w http.ResponseWriter) io.Writer {
9 return writeFlusher{w.(interface {
10 io.Writer
11 http.Flusher
12 })}
13}
14
15type writeFlusher struct {
16 wf interface {
17 io.Writer
18 http.Flusher
19 }
20}
21
22func (w writeFlusher) Write(p []byte) (int, error) {
23 defer w.wf.Flush()
24 return w.wf.Write(p)
25}