Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreationStrategy ¶ added in v0.2.0
type CreationStrategy string
CreationStrategy enumerates the values that are supported for populating the bits of a new Guid.
const ( CreationStrategyRFC4122Version1 CreationStrategy = "version1" CreationStrategyRFC4122Version2 CreationStrategy = "version2" CreationStrategyRFC4122Version3 CreationStrategy = "version3" CreationStrategyRFC4122Version4 CreationStrategy = "version4" CreationStrategyRFC4122Version5 CreationStrategy = "version5" )
These constants define the possible creation strategies available via this implementation of Guid.
type Format ¶ added in v0.2.0
type Format string
Format enumerates the values that are supported by Parse and Format
type GUID ¶
type GUID struct {
// contains filtered or unexported fields
}
GUID is a unique identifier designed to virtually guarantee non-conflict between values generated across a distributed system.
func NewGUIDs ¶ added in v0.2.0
func NewGUIDs(strategy CreationStrategy) (GUID, error)
NewGUIDs generates and returns a new globally unique identifier that conforms to the given strategy.
func Parse ¶
Parse instantiates a GUID from a text represention of the same GUID. This is the inverse of function family String()
Click to show internal directories.
Click to hide internal directories.