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

Method Write

internal/syncwriter/syncwriter.go:34–41  ·  view source on GitHub ↗
(name string, p []byte)

Source from the content-addressed store, hash-verified

32}
33
34func (w *Writer) Write(name string, p []byte) {
35 w.mu.Lock()
36 defer w.mu.Unlock()
37 _, err := w.w.Write(p)
38 if err != nil {
39 w.errorf("%v: failed to write entry: %+v", name, err)
40 }
41}
42
43type syncer interface {
44 Sync() error

Callers 3

writeSignedIntFunction · 0.45
writeUnsignedIntFunction · 0.45
writeValueFastFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected