util

package
v0.0.0-...-cd18553 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatalf

func Fatalf(format string, v ...any)

Fatalf prints a formatted error message to stderr and exits the program with exit code 1.

func ReportError

func ReportError(err error)

ReportError checks if there was an error and conditionally reports it by calling Fatalf().

func SetVerbose

func SetVerbose(v bool)

SetVerbose enables or disables verbose messages.

func Verbosef

func Verbosef(format string, v ...any)

Verbosef prints a formatted message to stdout if in verbose mode. Use SetVerbose to enable/disable verbose mode.

func Warnf

func Warnf(format string, v ...any)

Warnf prints a formatted warning message to stderr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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