Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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