func github.com/go-faster/errors.As
19 uses
github.com/go-faster/errors (current package)
into.go#L9: ok = As(err, &val)
wrap.go#L140: func As(err error, target interface{}) bool { return errors.As(err, target) }
github.com/gotd/td/exchange
proto.go#L66: errors.As(err, &protocolErr) &&
github.com/gotd/td/mtproto
bind.go#L138: if err != nil && errors.As(err, &badMsgErr) && badMsgErr.Code == codeIncorrectServerSalt {
read.go#L173: if errors.As(err, &syscall) && syscall.Timeout() {
read.go#L261: if errors.As(err, &protoErr) && protoErr.Code == codec.CodeAuthKeyNotFound {
rpc.go#L61: if !errors.As(err, &bad) {
rpc.go#L106: if errors.As(err, &badMsgErr) && badMsgErr.Code == codeIncorrectServerSalt {
github.com/gotd/td/rpc
engine.go#L143: case errors.As(err, &limitErr):
github.com/gotd/td/session/tdesktop
file.go#L58: if errors.As(err, &magicErr) {
github.com/gotd/td/telegram
config_error.go#L44: if !errors.As(err, &initErr) {
connect.go#L263: case !errors.As(err, &already):
lifecycle.go#L172: if !errors.As(err, &lost) {
github.com/gotd/td/telegram/auth
flow.go#L78: if errors.As(signInErr, &signUpRequired) {
github.com/gotd/td/telegram/downloader
cdn_state_machine.go#L125: if errors.As(err, &redirectErr) {
cdn_state_machine.go#L161: if errors.As(err, &redirectErr) {
retry.go#L48: return errors.As(err, &netErr) && netErr.Timeout()
github.com/gotd/td/tgerr
error.go#L124: if errors.As(err, &rpcErr) && rpcErr.Type == t {
error.go#L132: if errors.As(err, &rpcErr) {
 |
The pages are generated with Golds v0.8.7. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |