Skip to content

shamsher31/gosymbol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gosymbol

Godoc Build Status GitHub release MIT License

Symbol provide unicode symbol for your Go apps

How to install

go get github.com/shamsher31/gosymbol

How to use

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())

}

Related

goisroot
gosudoblock
chalk

Why

This package is inspired by log-symbols npm module but with more unicode symbols.

License

MIT © Shamsher Ansari

About

Symbol provide unicode symbol for your Go apps

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages