INNER CODE UNIT · Go

printLogo

derailed/popeye · cmd/version.go:42

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))
			}
		}
		fmt.Println(report.Colorize(s, logo))
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…