1
0
Fork 0
telegraf/plugins/parsers/errors.go

10 lines
295 B
Go
Raw Permalink Normal View History

package parsers
import "errors"
// ErrEOF is similar to io.EOF but is a separate type to make sure we
// have checked the parsers using it to have the same meaning (i.e.
// it needs more data to complete parsing) and a way to detect partial
// data.
var ErrEOF = errors.New("not enough data")