MCPcopy Index your code
hub / github.com/tailscale/tailscale / flush

Method flush

tempfork/pkgdoc/pkgdoc.go:159–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157}
158
159func (pkg *Package) flush() {
160 _, err := pkg.writer.Write(pkg.buf.Bytes())
161 if err != nil {
162 log.Fatal(err)
163 }
164 pkg.buf.Reset() // Not needed, but it's a flush.
165}
166
167var newlineBytes = []byte("\n\n") // We never ask for more than 2.
168

Callers 1

PackageDocFunction · 0.45

Calls 4

BytesMethod · 0.80
WriteMethod · 0.65
FatalMethod · 0.65
ResetMethod · 0.65

Tested by

no test coverage detected