Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustParse ¶
func MustParse[I ID, PI SubtypePtr[I]](id string) I
MustParse parses a string representation of an ID into the specified ID type and panics if it cannot be parsed.
func New ¶
func New[I ID, PI SubtypePtr[I]]() I
New creates a new instance of the specified ID type. It panics if the ID cannot be generated.
Types ¶
type SubtypePtr ¶
type SubtypePtr[T any] = typeid.SubtypePtr[T]
Click to show internal directories.
Click to hide internal directories.