MCPcopy Create free account
hub / github.com/coder/slog / Writer

Struct Writer

internal/syncwriter/syncwriter.go:14–19  ·  view source on GitHub ↗

Writer implements a concurrency safe io.Writer wrapper.

Source from the content-addressed store, hash-verified

12
13// Writer implements a concurrency safe io.Writer wrapper.
14type Writer struct {
15 mu sync.Mutex
16 w io.Writer
17
18 errorf func(f string, v ...interface{})
19}
20
21// New returns a new Writer that writes to w.
22func New(w io.Writer) *Writer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected