Codebase list golang-github-rs-xid / fresh-releases/upstream error.go
fresh-releases/upstream

Tree @fresh-releases/upstream (Download .tar.gz)

error.go @fresh-releases/upstreamraw · history · blame

package xid

const (
	// ErrInvalidID is returned when trying to unmarshal an invalid ID.
	ErrInvalidID strErr = "xid: invalid ID"
)

// strErr allows declaring errors as constants.
type strErr string

func (err strErr) Error() string { return string(err) }