import (
"fmt"
"github.com/logrusorgru/aurora"
)
func TestPrint(t *testing.T) {
fmt.Println(aurora.Red("hello"))
fmt.Println(aurora.Yellow("hello"))
fmt.Println(aurora.Underline("hello"))
fmt.Println(aurora.Green("hello"))
fmt.Println(aurora.BgBlue("hello"))
}
效果:
评论区