msg

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0, BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package msg is a tool for handling commandline output based on flags for quiet, verbose, and debug modes. The default is to have all modes disabled.

The Qprint messages will only output messages if quiet mode is disabled The Vprint messages will only output messages if verbose mode is enabled. The Dprint messages will only output messages if debug mode is enabled.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dprint added in v1.16.1

func Dprint(a ...any)

func Dprintf added in v1.16.1

func Dprintf(format string, a ...any)

func Dprintln added in v1.16.1

func Dprintln(a ...any)

func Print

func Print(a ...any)

func Printf

func Printf(format string, a ...any)

func Println

func Println(a ...any)

func Qprint added in v1.16.1

func Qprint(a ...any)

func Qprintf added in v1.16.1

func Qprintf(format string, a ...any)

func Qprintln added in v1.16.1

func Qprintln(a ...any)

func Reset added in v1.16.3

func Reset()

func Set

func Set(q, v, d bool)

func SetDebug

func SetDebug(d bool)

func SetQuiet

func SetQuiet(q bool)

func SetVerbose

func SetVerbose(v bool)

func SetWriter

func SetWriter(dst io.Writer)

SetWriter changes the output for messages.

func StackTrace

func StackTrace()

func Vprint added in v1.16.1

func Vprint(a ...any)

func Vprintf added in v1.16.1

func Vprintf(format string, a ...any)

func Vprintln added in v1.16.1

func Vprintln(a ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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