Skip to content

cute v1.1.0

Compare
Choose a tag to compare
@zakaria-chahboun zakaria-chahboun released this 17 Oct 23:46
· 5 commits to main since this release

Simplify color names (e.g):

  • from ColorBlack , ColorBrightBlack
  • to Black , BrightBlack

+ New List

You can print a list of lines dynamically! You can also specify the color for each line:

// juice recipe πŸ§ƒ
list := cute.NewList(cute.BrightBlue, "Yummy Juice!")
list.Add(cute.BrightGreen, "1 avocado πŸ₯‘")
list.Add(cute.BrightRed, "4 strawberry πŸ“")
list.Addf(cute.White, "%d ML %s", 500, "milk πŸ₯›")
list.Print()

print list with colors


How you can use cute with Scan?
https://github.com/zakaria-chahboun/cute#how-you-can-use-it-with-scan