cliverage/print.go

16 lines
296 B
Go
Raw Normal View History

2019-11-22 22:02:55 +00:00
package main
import "fmt"
func bold(str string) string {
return fmt.Sprintf("\x1b[1m%s\x1b[0m", str)
}
func success(str string) string {
2019-11-22 22:14:40 +00:00
return fmt.Sprintf("\x1b[38;2;26;221;120m%s\x1b[0m", str)
2019-11-22 22:02:55 +00:00
}
func error(str string) string {
2019-11-22 22:14:40 +00:00
return fmt.Sprintf("\x1b[38;2;221;26;120m%s\x1b[0m", str)
2019-11-22 22:02:55 +00:00
}