mirror of
https://github.com/beego/bee.git
synced 2024-11-27 03:01:29 +00:00
17 lines
210 B
Go
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)
|
||
|
}
|