A lightweight packaging library for outputting color text on the terminal
go get github.com/zhangboqi/cfmt
package main
import "github.com/zhangboqi/cfmt"
func main(){
// green
cfmt.Gprintln("green")
// red
cfmt.Rprintln("red")
// yellow
cfmt.Yprintln("yellow")
}
package main
import (
"github.com/zhangboqi/cfmt"
)
func main() {
bfmt := cfmt.New(cfmt.CODE_DEFAULT, cfmt.BG_BLACK, cfmt.FG_BLUE)
bfmt.Println("Blue")
}