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) }