Print is a wrapper for fmt.Print that treats each argument as if it were passed with a Formatter interface returned by c.NewFormatter. It returns the number of bytes written and any write error encountered. See NewFormatter for formatting details. This function is shorthand for the following synt
(a ...interface{})
| 160 | // |
| 161 | // fmt.Print(c.NewFormatter(a), c.NewFormatter(b)) |
| 162 | func (c *ConfigState) Print(a ...interface{}) (n int, err error) { |
| 163 | return fmt.Print(c.convertArgs(a)...) |
| 164 | } |
| 165 | |
| 166 | // Printf is a wrapper for fmt.Printf that treats each argument as if it were |
| 167 | // passed with a Formatter interface returned by c.NewFormatter. It returns |