From b1ff5bf140dbf4bdb43352a50d65d392abbd4025 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 3 Dec 2021 09:38:33 +0000 Subject: comment why none logger documentation is empty --- internal/io/dlog/loggers/none.go | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) (limited to 'internal') diff --git a/internal/io/dlog/loggers/none.go b/internal/io/dlog/loggers/none.go index 973ae3c..a685862 100644 --- a/internal/io/dlog/loggers/none.go +++ b/internal/io/dlog/loggers/none.go @@ -9,13 +9,30 @@ import ( // don't log anything type none struct{} -func (none) Start(ctx context.Context, wg *sync.WaitGroup) { wg.Done() } -func (none) Log(now time.Time, message string) {} +func (none) Start(ctx context.Context, wg *sync.WaitGroup) { wg.Done() } + +// Log is empty because the none isn't logging but has to statify the interface. +func (none) Log(now time.Time, message string) {} + +// LogWithColora is empty because the none isn't logging but has to statify the interface. func (none) LogWithColors(now time.Time, message, coloredMessage string) {} -func (none) Raw(now time.Time, message string) {} + +// Raw is empty because the none isn't logging but has to statify the interface. +func (none) Raw(now time.Time, message string) {} + +// RawWithColors is empty because the none isn't logging but has to statify the interface. func (none) RawWithColors(now time.Time, message, coloredMessage string) {} -func (none) Flush() {} -func (none) Pause() {} -func (none) Resume() {} -func (none) Rotate() {} -func (none) SupportsColors() bool { return false } + +// Flush is empty because the none isn't logging but has to statify the interface. +func (none) Flush() {} + +// Pause is empty because the none isn't logging but has to statify the interface. +func (none) Pause() {} + +// Resume is empty because the none isn't logging but has to statify the interface. +func (none) Resume() {} + +// Rotate is empty because the none isn't logging but has to statify the interface. +func (none) Rotate() {} + +func (none) SupportsColors() bool { return false } -- cgit v1.2.3