mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 03:38:03 +01:00
Add colored printing utils
This commit is contained in:
11
util/echo.go
Normal file
11
util/echo.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package util
|
||||
|
||||
import "fmt"
|
||||
|
||||
func Printf(s string, args ...interface{}) {
|
||||
fmt.Printf("\x1b[32m~ %v\x1b[0m\n", fmt.Sprintf(s, args...))
|
||||
}
|
||||
|
||||
func Warningf(s string, args ...interface{}) {
|
||||
fmt.Printf("\x1b[33m~ %v\x1b[0m\n", fmt.Sprintf(s, args...))
|
||||
}
|
||||
Reference in New Issue
Block a user