Debian Codegraph @

format.go

raw symbols SCIP
1 // Copyright 2018 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package xerrorsscip-go gomod golang.org/x/xerrors . `golang.org/x/xerrors`/
6
7 // A Formatter formats error messages.
8 type Formatterscip-go gomod golang.org/x/xerrors . `golang.org/x/xerrors`/Formatter# interface {
9 error
10
11 // FormatError prints the receiver's first error and returns the next error in
12 // the error chain, if any.
13 FormatErrorscip-go gomod golang.org/x/xerrors . `golang.org/x/xerrors`/Formatter#FormatError.(p Printerscip-go gomod golang.org/x/xerrors . `golang.org/x/xerrors`/Printer#) (next error)
14 }
15
16 // A Printer formats error messages.
17 //
18 // The most common implementation of Printer is the one provided by package fmt
19 // during Printf (as of Go 1.13). Localization packages such as golang.org/x/text/message
20 // typically provide their own implementations.
21 type Printerscip-go gomod golang.org/x/xerrors . `golang.org/x/xerrors`/Printer# interface {
22 // Print appends args to the message output.
23 Printscip-go gomod golang.org/x/xerrors . `golang.org/x/xerrors`/Printer#Print.(args ...interface{})
24
25 // Printf writes a formatted string.
26 Printfscip-go gomod golang.org/x/xerrors . `golang.org/x/xerrors`/Printer#Printf.(format string, args ...interface{})
27
28 // Detail reports whether error detail is requested.
29 // After the first call to Detail, all text written to the Printer
30 // is formatted as additional detail, or ignored when
31 // detail has not been requested.
32 // If Detail returns false, the caller can avoid printing the detail at all.
33 Detailscip-go gomod golang.org/x/xerrors . `golang.org/x/xerrors`/Printer#Detail.() bool
34 }