github.com/haraldrudell/parl@v0.4.176/if-printf.go (about)

     1  /*
     2  © 2022–present Harald Rudell <harald.rudell@gmail.com> (https://haraldrudell.github.io/haraldrudell/)
     3  ISC License
     4  */
     5  
     6  package parl
     7  
     8  // PrintfFunc is the signature for a printf-style function.
     9  // This signature is implemented by:
    10  //   - parl.Sprintf
    11  //   - parl.Out parl.Outw parl.Log parl.Logw parl.Console parl.Consolew
    12  //     parl.Info parl.Debug parl.D parl.NoPrint
    13  //   - plog.(*LogInstance) similar methods
    14  //   - perrors.Errorf perrors.ErrorfPF
    15  //   - fmt.Printf fmt.Sprintf fmt.Errorf
    16  //   - pterm.(*StatusTerminal).Log pterm.(*StatusTerminal).LogTimeStamp
    17  //
    18  // and compatible functions
    19  type PrintfFunc func(format string, a ...any)