funcmain() { // quick use like fmt.Print* color.Red.Println("Simple to use color") color.Green.Print("Simple to use color\n") color.Cyan.Printf("Simple to use %s\n", "color") color.Yellow.Printf("Simple to use %s\n", "color")
// use like func red := color.FgRed.Render green := color.FgGreen.Render fmt.Printf("%s line %s library\n", red("Command"), green("color"))
// custom color color.New(color.FgWhite, color.BgBlack).Println("custom color style")
// can also: color.Style{color.FgCyan, color.OpBold}.Println("custom color style")