Symbol provide unicode symbol for your Go apps
go get github.com/shamsher31/gosymbol
package main
import (
"fmt"
"github.com/shamsher31/gosymbol"
)
func main() {
// will give ℹ in blue color
fmt.Print(symbol.Info())
// will give ✔ in green color
fmt.Print(symbol.Success())
// will give ⚠ in yellow color
fmt.Print(symbol.Warning())
// will give ✖ in red color
fmt.Print(symbol.Error())
// will give ©
fmt.Println(symbol.Copyright())
// will give ®
fmt.Println(symbol.Registered())
// will give β
fmt.Println(symbol.Beta())
// will give δ
fmt.Println(symbol.Delta())
}
This package is inspired by log-symbols npm module but with more unicode symbols.
MIT © Shamsher Ansari