github.com/haraldrudell/parl@v0.4.176/sprintf.go (about)

     1  /*
     2  © 2020–present Harald Rudell <harald.rudell@gmail.com> (https://haraldrudell.github.io/haraldrudell/)
     3  ISC License
     4  */
     5  
     6  package parl
     7  
     8  import "github.com/haraldrudell/parl/plog"
     9  
    10  // Sprintf is a printer that supports comma in large numbers
    11  func Sprintf(format string, a ...any) string {
    12  	if len(a) == 0 {
    13  		return format
    14  	}
    15  	return plog.EnglishSprintf(format, a...)
    16  }