mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-12-18 10:27:16 +00:00
16 lines
210 B
Go
16 lines
210 B
Go
package reporting
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
)
|
|
|
|
type console struct{}
|
|
|
|
func (self *console) Write(p []byte) (n int, err error) {
|
|
return fmt.Print(string(p))
|
|
}
|
|
|
|
func NewConsole() io.Writer {
|
|
return new(console)
|
|
}
|