Documentation
¶
Overview ¶
Package errors provides encoding error values and helpers used by go-service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidType = errors.New("encoding: invalid type")
ErrInvalidType indicates that an Encoder cannot operate on the provided value type.
It is returned by encoding adapters that require the input value to implement a specific interface (for example io.WriterTo/io.ReaderFrom for the bytes passthrough encoder, or proto.Message for protobuf encoders).
View Source
var ErrTrailingData = errors.New("encoding: trailing data")
ErrTrailingData indicates that a decoder found another value after the first decoded payload.
Functions ¶
func TrailingData ¶ added in v2.447.0
TrailingData returns nil for EOF and ErrTrailingData for any extra decoded value or parse error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.