Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shamsher31/gosymbol
Symbol provide unicode symbol for your Go apps
https://github.com/shamsher31/gosymbol
golang package unicode-symbols
Last synced: 4 days ago
JSON representation
Symbol provide unicode symbol for your Go apps
- Host: GitHub
- URL: https://github.com/shamsher31/gosymbol
- Owner: shamsher31
- License: mit
- Created: 2015-08-29T18:47:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-07T09:54:51.000Z (over 7 years ago)
- Last Synced: 2024-06-20T12:05:55.935Z (5 months ago)
- Topics: golang, package, unicode-symbols
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# gosymbol
[![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/shamsher31/gosymbol)
[![Build Status](https://travis-ci.org/shamsher31/gosymbol.svg)](https://travis-ci.org/shamsher31/gosymbol)
[![GitHub release](http://img.shields.io/github/release/shamsher31/gosymbol.svg?style=flat-square)](release)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](license)Symbol provide unicode symbol for your Go apps
### How to install
```go
go get github.com/shamsher31/gosymbol
```### How to use
```go
package mainimport (
"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](https://github.com/shamsher31/goisroot)
[gosudoblock](https://github.com/shamsher31/gosudoblock)
[chalk](https://github.com/ttacon/chalk)### Why
This package is inspired by [log-symbols](https://www.npmjs.com/package/log-symbols) npm module but with more unicode symbols.### License
MIT © [Shamsher Ansari](https://github.com/shamsher31)