MCPcopy
hub / github.com/pterm/pterm / Sprintln

Function Sprintln

print.go:39–42  ·  view source on GitHub ↗

Sprintln returns what Println would print to the terminal.

(a ...any)

Source from the content-addressed store, hash-verified

37
38// Sprintln returns what Println would print to the terminal.
39func Sprintln(a ...any) string {
40 str := fmt.Sprintln(a...)
41 return Sprint(str)
42}
43
44// Sprinto returns what Printo would print.
45func Sprinto(a ...any) string {

Callers 8

TestSprintlnFunction · 0.92
SprintlnMethod · 0.85
SprintlnMethod · 0.85
SprintlnMethod · 0.85
SprintlnMethod · 0.85
SprintlnMethod · 0.85
PrintlnFunction · 0.85
SprintlnMethod · 0.85

Calls 2

SprintFunction · 0.85
SprintlnMethod · 0.65

Tested by 1

TestSprintlnFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…