Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package sio provides logging functions with optional colorization.
Index ¶
- Variables
 - func ColorsEnabled() bool
 - func Debugf(format string, args ...interface{})
 - func Debugln(args ...interface{})
 - func EnableColors(flag bool)
 - func ErrorString(s string) string
 - func Errorf(format string, args ...interface{})
 - func Errorln(args ...interface{})
 - func Noticef(format string, args ...interface{})
 - func Noticeln(args ...interface{})
 - func Printf(format string, args ...interface{})
 - func Println(args ...interface{})
 - func Warnf(format string, args ...interface{})
 - func Warnln(args ...interface{})
 
Constants ¶
This section is empty.
Variables ¶
var Output io.Writer = os.Stderr
    Output is the writer to which all prompts, errors and messages go. This is set to standard error by default.
Functions ¶
func ColorsEnabled ¶ added in v0.12.2
func ColorsEnabled() bool
ColorsEnabled returns if colored output is enabled
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf prints the supplied arguments to the standard writer, de-emphasized.
func Debugln ¶
func Debugln(args ...interface{})
    Debugln prints the supplied arguments to the standard writer, de-emphasized
func ErrorString ¶ added in v0.14.3
ErrorString returns a colorized string representing an error condition.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf prints the supplied arguments to the standard writer with some indication that an error has occurred.
func Errorln ¶
func Errorln(args ...interface{})
    Errorln prints the supplied arguments to the standard writer with some indication that an error has occurred.
func Noticef ¶
func Noticef(format string, args ...interface{})
Noticef prints the supplied arguments in a way that they will be noticed. Use sparingly.
func Noticeln ¶
func Noticeln(args ...interface{})
    Noticeln prints the supplied arguments in a way that they will be noticed. Use sparingly.
func Printf ¶
func Printf(format string, args ...interface{})
Printf prints the supplied arguments to the standard writer.
func Println ¶
func Println(args ...interface{})
    Println prints the supplied arguments to the standard writer
Types ¶
This section is empty.