File: error.go

package info (click to toggle)
golang-github-rs-xid 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 152 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 258 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
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) }