Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

printfdebugging.gno

0.40 Kb · 19 lines
 1// this package is a joke... or not.
 2package printfdebugging
 3
 4import (
 5	"strings"
 6
 7	"gno.land/p/nt/ufmt/v0"
 8)
 9
10func BigRedLine(args ...string) {
11	println(ufmt.Sprintf("%s[%dm####################################%s[%dm %s",
12		Escape, int(BgRed), Escape, int(Reset),
13		strings.Join(args, " "),
14	))
15}
16
17func Success() {
18	println("   \033[31mS\033[33mU\033[32mC\033[36mC\033[34mE\033[35mS\033[31mS\033[0m   ")
19}