add StdOutput
This commit is contained in:
21
output/stdout.go
Normal file
21
output/stdout.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package output
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type stdoutput struct {
|
||||
}
|
||||
|
||||
func StdOutput() *stdoutput {
|
||||
return &stdoutput{}
|
||||
}
|
||||
|
||||
func (so *stdoutput) Write(str string) error {
|
||||
fmt.Println(str)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (so *stdoutput) GetName() string {
|
||||
return "stdout"
|
||||
}
|
||||
Reference in New Issue
Block a user