out

package module
v0.0.0-...-5dfe362 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2015 License: MIT Imports: 3 Imported by: 0

README

out

A simple interface to terminal outputting

Travis Godoc

ScreenShot

license:

The MIT License (MIT)

Copyright © 2015 GochoMugo mugo@forfuture.co.ke

Documentation

Overview

Package out provides a simple interface to terminal outputting. Suitable for terminal applications.

View sample screenshot at https://github.com/GochoMugo/go-out/blob/master/screenshot.png

All the exported functions, unless noted otherwise, format the message string using Printf. Also, color codes, as expected by colorstring (https://github.com/mitchellh/colorstring), found within the message are replaced with the respective colors. For example `"hello, [red] mars"` will have the "[red]" replaced with color red.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string, args ...interface{}) (n int, err error)

Debug outputs a debug message if ${DEBUG} is truthy

func Error

func Error(message string, args ...interface{}) (n int, err error)

Error outputs an error message

func Info

func Info(message string, args ...interface{}) (n int, err error)

Info outputs a informatory message

func Success

func Success(message string, args ...interface{}) (n int, err error)

Success outputs a success message

func Warn

func Warn(message string, args ...interface{}) (n int, err error)

Warn outputs a warning message

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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