out

package
v0.10.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package out provides output functionality, including verboseness level and normal/error messages support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type O

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

O represents an output instance

func New

func New(verboseness int, stdout, stderr io.Writer) O

New creates a new output with the given verboseness. Any output messages with a verboseness bigger than the given verboseness will be ignored.

func (O) MsgStdErr

func (o O) MsgStdErr(format string, args ...interface{})

MsgStdErr Send a message to stderr Writer output with no or any verboseness

func (O) MsgStdErrV

func (o O) MsgStdErrV(format string, args ...interface{})

MsgStdErrV Send a message to stderr Writer output with verboseness level 1 or higher

func (O) MsgStdErrV0

func (o O) MsgStdErrV0(format string, args ...interface{})

MsgStdErrV0 Send a message to stderr Writer output only with no verboseness

func (O) MsgStdErrV1

func (o O) MsgStdErrV1(format string, args ...interface{})

MsgStdErrV1 Send a message to stderr Writer output only with verboseness level 1

func (O) MsgStdErrV2

func (o O) MsgStdErrV2(format string, args ...interface{})

MsgStdErrV2 Send a message to stderr Writer output only with verboseness level 2

func (O) MsgStdErrV3

func (o O) MsgStdErrV3(format string, args ...interface{})

MsgStdErrV3 Send a message to stderr Writer output only with verboseness level 3

func (O) MsgStdErrVV

func (o O) MsgStdErrVV(format string, args ...interface{})

MsgStdErrVV Send a message to stderr Writer output with verboseness level 2 or higher

func (O) MsgStdErrVVV

func (o O) MsgStdErrVVV(format string, args ...interface{})

MsgStdErrVVV Send a message to stderr Writer output with verboseness level 3

func (O) MsgStdOut

func (o O) MsgStdOut(format string, args ...interface{})

MsgStdOut Send a message to stdout Writer output with no or any verboseness

func (O) MsgStdOutV

func (o O) MsgStdOutV(format string, args ...interface{})

MsgStdOutV Send a message to stdout Writer output with verboseness level 1 or higher

func (O) MsgStdOutV0

func (o O) MsgStdOutV0(format string, args ...interface{})

MsgStdOutV0 Send a message to stdout Writer output only with no verboseness

func (O) MsgStdOutV1

func (o O) MsgStdOutV1(format string, args ...interface{})

MsgStdOutV1 Send a message to stdout Writer output only with verboseness level 1

func (O) MsgStdOutV2

func (o O) MsgStdOutV2(format string, args ...interface{})

MsgStdOutV2 Send a message to stdout Writer output only with verboseness level 2

func (O) MsgStdOutV3

func (o O) MsgStdOutV3(format string, args ...interface{})

MsgStdOutV3 Send a message to stdout Writer output only with verboseness level 3

func (O) MsgStdOutVV

func (o O) MsgStdOutVV(format string, args ...interface{})

MsgStdOutVV Send a message to stdout Writer output with verboseness level 2 or higher

func (O) MsgStdOutVVV

func (o O) MsgStdOutVVV(format string, args ...interface{})

MsgStdOutVVV Send a message to stdout Writer output with verboseness level 3 or higher

Jump to

Keyboard shortcuts

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