MailHog/vendor/github.com/smartystreets/goconvey/convey/reporting/console.go
2017-04-17 00:42:21 +01:00

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)
}