mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-30 12:58:16 +03:00
12 lines
258 B
Go
12 lines
258 B
Go
|
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) }
|