Source File
fmt.go
Belonging Package
golang.org/x/xerrors
package xerrors
import (
)
const percentBangString = "%!"
if +1 < len() && [+1] == '%' {
= 2
continue
}
, = parsePrintfVerb([:])
if {
if >= 0 {
= false
} else {
=
:= + - 1
= [:] + "v" + [+1:]
}
++
}
return , ,
}
:= 0
var rune
for := 1; < len(); += {
, = utf8.DecodeRuneInString([:])
if unicode.IsLetter() {
return + , == 'w'
}
}
return len(), false
}
type noWrapError struct {
msg string
err error
frame Frame
}
func ( *noWrapError) () string {
return fmt.Sprint()
}
func ( *noWrapError) ( fmt.State, rune) { FormatError(, , ) }
func ( *noWrapError) ( Printer) ( error) {
.Print(.msg)
.frame.Format()
return .err
}
type wrapError struct {
msg string
err error
frame Frame
}
func ( *wrapError) () string {
return fmt.Sprint()
}
func ( *wrapError) ( fmt.State, rune) { FormatError(, , ) }
func ( *wrapError) ( Printer) ( error) {
.Print(.msg)
.frame.Format()
return .err
}
func ( *wrapError) () error {
return .err
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |