diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-15 01:37:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 01:37:19 +0100 |
commit | 12aa9caf97bdcb6dc71a8c94c4875f9e0e87022a (patch) | |
tree | f0dc54d0ff39dc1f5ad56ecf8619f47ea7f22771 /vendor/golang.org/x/xerrors/format.go | |
parent | 0aa9dba3e1009dbbdf59d47d9370db0de4679730 (diff) | |
parent | f5bda9994d5e6cb1ee42ade5e7786059feedf633 (diff) | |
download | podman-12aa9caf97bdcb6dc71a8c94c4875f9e0e87022a.tar.gz podman-12aa9caf97bdcb6dc71a8c94c4875f9e0e87022a.tar.bz2 podman-12aa9caf97bdcb6dc71a8c94c4875f9e0e87022a.zip |
Merge pull request #4866 from TomSweeneyRedHat/dev/tsweeney/buildah1.13.1
Bump to Buildah v1.13.1
Diffstat (limited to 'vendor/golang.org/x/xerrors/format.go')
-rw-r--r-- | vendor/golang.org/x/xerrors/format.go | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/vendor/golang.org/x/xerrors/format.go b/vendor/golang.org/x/xerrors/format.go new file mode 100644 index 000000000..1bc9c26b9 --- /dev/null +++ b/vendor/golang.org/x/xerrors/format.go @@ -0,0 +1,34 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package xerrors + +// A Formatter formats error messages. +type Formatter interface { + error + + // FormatError prints the receiver's first error and returns the next error in + // the error chain, if any. + FormatError(p Printer) (next error) +} + +// A Printer formats error messages. +// +// The most common implementation of Printer is the one provided by package fmt +// during Printf (as of Go 1.13). Localization packages such as golang.org/x/text/message +// typically provide their own implementations. +type Printer interface { + // Print appends args to the message output. + Print(args ...interface{}) + + // Printf writes a formatted string. + Printf(format string, args ...interface{}) + + // Detail reports whether error detail is requested. + // After the first call to Detail, all text written to the Printer + // is formatted as additional detail, or ignored when + // detail has not been requested. + // If Detail returns false, the caller can avoid printing the detail at all. + Detail() bool +} |