github.com/tiagovtristao/plz@v13.4.0+incompatible/src/output/print.go (about) 1 // +build !bootstrap 2 3 package output 4 5 import ( 6 "fmt" 7 "os" 8 9 "github.com/thought-machine/please/src/cli" 10 ) 11 12 // printf is used throughout this package to print something to stderr with some niceties 13 // around ANSI formatting codes. 14 func printf(format string, args ...interface{}) { 15 if !cli.StdErrIsATerminal { 16 format = cli.StripAnsi.ReplaceAllString(format, "") 17 } 18 fmt.Fprintf(os.Stderr, format, args...) 19 }