View Source OnePiece.Commanded.Id (OnePiece.Commanded v0.8.0)
A module for dealing IDs.
Link to this section Summary
Functions
Transform the UUID into the default format.
Link to this section Functions
@spec new() :: String.t()
Generates a UUID using the version 4 scheme, as described in RFC 4122, with a hex format.
Transform the UUID into the default format.
Useful when to transform a uuid with :hex format into a uuid with :default format.
iex> OnePiece.Commanded.Id.to_default_format("f81d4fae7dec11d0a76500a0c91e6bf6")
"f81d4fae-7dec-11d0-a765-00a0c91e6bf6"