Package uuid implements UUID RFC 4122.
uuid.NewTimeBased() (uuid.UUID, error)
uuid.NewV1() (uuid.UUID, error)
uuid.NewDCESecurity(uuid.Domain) (uuid.UUID, error)
uuid.NewV2(uuid.Domain) (uuid.UUID, error)
uuid.NewNameBasedMD5(namespace, name string) (uuid.UUID, error)
uuid.NewV3(namespace, name string) (uuid.UUID, error)
uuid.NewRandom() (uuid.UUID, error)
uuid.NewV4() (uuid.UUID, error)
uuid.NewNameBasedSHA1(namespace, name string) (uuid.UUID, error)
uuid.NewV5(namespace, name string) (uuid.UUID, error)
- Standard: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12, length: 36)
- Without Dash: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (length: 32)
uuid.UUID.String() string // format to standard style
uuid.UUID.Format(uuid.Style) string // format to uuid.StyleStandard or uuid.StyleWithoutDash
uuid.Parse(string) (uuid.UUID, error) // parse from UUID string