1package reporting 2 3import ( 4 "fmt" 5 "io" 6) 7 8type console struct{} 9 10func (self *console) Write(p []byte) (n int, err error) { 11 return fmt.Print(string(p)) 12} 13 14func NewConsole() io.Writer { 15 return new(console) 16} 17