logsymbols

package module
v0.0.0-...-59f0737 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: MIT Imports: 3 Imported by: 1

README

log-symbols

GoDoc Build Status

A port of the NPM package by Sindresorhus for Golang

Colored symbols for various log levels

Includes fallbacks for Windows CMD which only supports a limited character set.

Install

go get "github.com/defaltd/log-symbols"

Examples

package main

import (
    logSymbols "github.com/defaltd/log-symbols"
)

func main() {
    fmt.Println(logSymbols.SUCCESS, "Finished successfully!")
    // On good OSes:  ✔ Finished successfully!
    // On Windows:    √ Finished successfully!
}

License

MIT © Stephen Rodriguez

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// INFO is the string info symbol
	INFO string
	// SUCCESS is the string success symbol
	SUCCESS string
	// WARNING is the string warning symbol
	WARNING string
	// ERROR is the string error symbol
	ERROR string
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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