algernon: github.com/xyproto/algernon/console Index | Files

package console

import "github.com/xyproto/algernon/console"

Package console provides functions for disabling and disabling output

Index

Package Files

console.go

type Output Uses

type Output struct {
    // contains filtered or unexported fields
}

Output is for enabling or disabling output to stdout

func (*Output) Disable Uses

func (o *Output) Disable()

Disable output to stdout. Will close stdout and stderr.

func (*Output) Enable Uses

func (o *Output) Enable()

Enable output to stdout, if stdout has not been closed

Package console imports 1 packages (graph) and is imported by 1 packages. Updated 2018-10-21. Refresh now. Tools for package owners.