console.go 210 B

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