add StdOutput

This commit is contained in:
2025-03-20 14:48:08 +09:00
parent 5f9b838af5
commit c25735f9c9
2 changed files with 22 additions and 0 deletions

21
output/stdout.go Normal file
View 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"
}