INNER CODE UNIT · Go
printTuple
derailed/popeye · cmd/version.go:36
func printTuple(section, value string) {
const secFmt = "%-10s "
fmt.Printf("%s", report.Colorize(fmt.Sprintf(secFmt, section+":"), report.ColorAqua))
fmt.Println(report.Colorize(value, report.ColorWhite))
}
func printLogo(title, logo report.Color) {
for i, s := range report.Logo {
if i < len(report.Popeye) {
fmt.Printf("%s", report.Colorize(report.Popeye[i], title))
fmt.Printf("%s", strings.Repeat(" ", 22))
} else {
if i == 4 {
fmt.Printf("%s", report.Colorize(" Biffs`em and Buffs`em!", logo))
fmt.Printf("%s", strings.Repeat(" ", 26))
} else {
fmt.Printf("%s", strings.Repeat(" ", 50))
}