Sprintf is a wrapper for fmt.Sprintf that treats each argument as if it were passed with a Formatter interface returned by c.NewFormatter. It returns the resulting string. See NewFormatter for formatting details. This function is shorthand for the following syntax: fmt.Sprintf(format, c.NewForm
(format string, a ...interface{})
| 206 | // |
| 207 | // fmt.Sprintf(format, c.NewFormatter(a), c.NewFormatter(b)) |
| 208 | func (c *ConfigState) Sprintf(format string, a ...interface{}) string { |
| 209 | return fmt.Sprintf(format, c.convertArgs(a)...) |
| 210 | } |
| 211 | |
| 212 | // Sprintln is a wrapper for fmt.Sprintln that treats each argument as if it |
| 213 | // were passed with a Formatter interface returned by c.NewFormatter. It |