MCPcopy
hub / github.com/sirupsen/logrus / sprintlnn

Method sprintlnn

entry.go:442–445  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

440// their type. Instead of vendoring the Sprintln implementation to spare a
441// string allocation, we do the simplest thing.
442func (entry *Entry) sprintlnn(args ...interface{}) string {
443 msg := fmt.Sprintln(args...)
444 return msg[:len(msg)-1]
445}

Callers 1

LoglnMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected