github.com/nektos/act@v0.2.63/pkg/workflowpattern/trace_writer.go (about)

     1  package workflowpattern
     2  
     3  import "fmt"
     4  
     5  type TraceWriter interface {
     6  	Info(string, ...interface{})
     7  }
     8  
     9  type EmptyTraceWriter struct{}
    10  
    11  func (*EmptyTraceWriter) Info(string, ...interface{}) {
    12  }
    13  
    14  type StdOutTraceWriter struct{}
    15  
    16  func (*StdOutTraceWriter) Info(format string, args ...interface{}) {
    17  	fmt.Printf(format+"\n", args...)
    18  }