Documentation
¶
Overview ¶
Package idgen generates stable, sortable IDs for DevSpecs artifacts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory generates DevSpecs IDs. It is safe for concurrent use.
func NewFactory ¶
func NewFactory() *Factory
NewFactory creates a new ID factory with a cryptographic entropy source.
func (*Factory) NewWithPrefix ¶
NewWithPrefix generates an ID with a custom prefix (e.g. "rev_", "src_").
Click to show internal directories.
Click to hide internal directories.