MCPcopy
hub / github.com/uber-go/zap / WriteSyncer

Interface WriteSyncer

zapcore/write_syncer.go:32–35  ·  zapcore/write_syncer.go::WriteSyncer

A WriteSyncer is an io.Writer that can also flush any buffered data. Note that *os.File (and thus, os.Stderr and os.Stdout) implement WriteSyncer.

Source from the content-addressed store, hash-verified

30// A WriteSyncer is an io.Writer that can also flush any buffered data. Note
31// that *os.File (and thus, os.Stderr and os.Stdout) implement WriteSyncer.
32type WriteSyncer interface {
33 io.Writer
34 Sync() error
35}
36
37// AddSync converts an io.Writer to a WriteSyncer. It attempts to be
38// intelligent: if the concrete type of the io.Writer implements WriteSyncer,

Callers 2

SyncMethod · 0.65
SyncMethod · 0.65

Implementers 15

Loggerlogger.go
testWriterwriter_test.go
partiallyNopCorezapio/writer_test.go
Writerzapio/writer.go
recordingCorezapcore/entry_test.go
countingCorezapcore/sampler_test.go
lockedWriteSyncerzapcore/write_syncer.go
writerWrapperzapcore/write_syncer.go
lazyWithCorezapcore/lazy_with.go
nopCorezapcore/core.go
ioCorezapcore/core.go

Calls

no outgoing calls

Tested by

no test coverage detected