sprintlnn => Sprint no newline. This is to get the behavior of how fmt.Sprintln where spaces are always added between operands, regardless of their type. Instead of vendoring the Sprintln implementation to spare a string allocation, we do the simplest thing.
(args ...interface{})
| 440 | // their type. Instead of vendoring the Sprintln implementation to spare a |
| 441 | // string allocation, we do the simplest thing. |
| 442 | func (entry *Entry) sprintlnn(args ...interface{}) string { |
| 443 | msg := fmt.Sprintln(args...) |
| 444 | return msg[:len(msg)-1] |
| 445 | } |