Source File
errors.go
Belonging Package
github.com/gotd/td/bin
package binimport// InvalidLengthError is returned when decoder reads invalid length.type InvalidLengthError struct {Length intWhere string}func ( *InvalidLengthError) () string {return fmt.Sprintf("invalid %s length: %d", .Where, .Length)}// UnexpectedIDErr means that unknown or unexpected type id was decoded.type UnexpectedIDErr struct {ID uint32}func ( *UnexpectedIDErr) () string {return fmt.Sprintf("unexpected id %#x", .ID)}// NewUnexpectedID return new UnexpectedIDErr.func ( uint32) error {return &UnexpectedIDErr{ID: }}
![]() |
The pages are generated with Golds v0.6.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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |