symbol

package module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2017 License: MIT Imports: 1 Imported by: 1

README

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

}

goisroot
gosudoblock
chalk

Why

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

License

MIT © Shamsher Ansari

Documentation

Overview

Package symbol provide colored log icons

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Beta

func Beta() string
func Copyright() string

func Delta

func Delta() string

func Error

func Error() string

func Info

func Info() string

func Microsecond

func Microsecond() string

func Omega

func Omega() string

func Pi

func Pi() string

func Registered

func Registered() string

func Success

func Success() string

func Theta

func Theta() string

func Warning

func Warning() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址