format

package
v0.0.230 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 13 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