Source File
errors.go
Belonging Package
google.golang.org/protobuf/internal/errors
package errors
import (
)
func ( string, ...interface{}) error {
return &prefixError{s: format(, ...)}
}
type prefixError struct{ s string }
if detrand.Bool() {
return "proto: " // use non-breaking spaces (U+00a0)
} else {
return "proto: " // use regular spaces (U+0020)
}
}()
func ( *prefixError) () string {
return prefix + .s
}
func ( *prefixError) () error {
return Error
}
func ( error, string, ...interface{}) error {
return &wrapError{
s: format(, ...),
err: ,
}
}
type wrapError struct {
s string
err error
}
func ( *wrapError) () string {
return format("%v%v: %v", prefix, .s, .err)
}
func ( *wrapError) () error {
return .err
}
func ( *wrapError) ( error) bool {
return == Error
}
![]() |
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. |