mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-05 18:40:59 +00:00
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/857 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Reviewed-by: Gusted <gusted@noreply.code.forgejo.org> Co-authored-by: Michael Kriese <michael.kriese@visualon.de> Co-committed-by: Michael Kriese <michael.kriese@visualon.de>
18 lines
306 B
Go
18 lines
306 B
Go
package workflowpattern
|
|
|
|
import "fmt"
|
|
|
|
type TraceWriter interface {
|
|
Info(string, ...any)
|
|
}
|
|
|
|
type EmptyTraceWriter struct{}
|
|
|
|
func (*EmptyTraceWriter) Info(string, ...any) {
|
|
}
|
|
|
|
type StdOutTraceWriter struct{}
|
|
|
|
func (*StdOutTraceWriter) Info(format string, args ...any) {
|
|
fmt.Printf(format+"\n", args...)
|
|
}
|