format

package
v0.0.178 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Pretty-printing of various namespace errors. Needs to be in a separate package to access error types from elsewhere in the codebase without introducing import cycles (e.g. tasks -> fnerrors -> tasks).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(w io.Writer, err error, args ...FormatOption)

Types

type FormatOption

type FormatOption func(*FormatOptions)

func WithActionTrace

func WithActionTrace(tracing bool) FormatOption

func WithStyle

func WithStyle(style colors.Style) FormatOption

func WithTracing

func WithTracing(tracing bool) FormatOption

type FormatOptions

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

Jump to

Keyboard shortcuts

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