1
0
mirror of https://github.com/beego/bee.git synced 2024-11-18 08:40:54 +00:00
bee/vendor/github.com/smartystreets/goconvey/convey/reporting/console.go
2016-12-05 23:07:45 +08:00

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