Documentation ¶
Index ¶
Constants ¶
View Source
const PrefixLength = 3
Separator between prefix and the ULID.
View Source
const Separator = '_'
Variables ¶
View Source
var ErrIncorrectPULIDFormat = fmt.Errorf("pulid: incorrect format")
ErrIncorrectPULIDFormat is returned when the PULID is not in the correct format.
Functions ¶
Types ¶
type PULID ¶
type PULID string
Prefixed ULID with object type - globally universal ID.
func (PULID) MarshalGQL ¶
Marshals a PULID into a graphql scalar string.
func (*PULID) UnmarshalGQL ¶
Unmarshals a graphql scalar into a PULID Go type.
Click to show internal directories.
Click to hide internal directories.