Encodef encodes a single pkt-line with the payload formatted as the format specifier. The rest of the arguments will be used in the format string.
(format string, a ...interface{})
| 120 | // the format specifier. The rest of the arguments will be used in |
| 121 | // the format string. |
| 122 | func (e *Encoder) Encodef(format string, a ...interface{}) error { |
| 123 | return e.EncodeString( |
| 124 | fmt.Sprintf(format, a...), |
| 125 | ) |
| 126 | } |