MCPcopy Create free account
hub / github.com/egonelbre/exp / WriteTo

Method WriteTo

error-reporting/main.go:42–49  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

40}
41
42func (tw *TailWriter) WriteTo(w io.Writer) {
43 if tw.TotalWritten <= len(tw.Buffer) {
44 w.Write(tw.Buffer[0:tw.TotalWritten])
45 return
46 }
47 w.Write(tw.Buffer[tw.Head:])
48 w.Write(tw.Buffer[:tw.Head])
49}
50
51func monitor() {
52 if os.Getenv("__NOMONITOR__") != "" {

Callers 1

monitorFunction · 0.45

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected