uuid¶
Note
Depending on how Minilang is built, uuid
might need to be imported using import: uuid("util/uuid")
.
meth address(UUID: uuid): address
Returns an address view of
UUID
.import: uuid("util/uuid") address(uuid()) :> <16:B71D0E0546224827981E3944E8138D91>
type uuid
A UUID.
meth uuid(Address: address): uuid | error
Returns a new UUID with the bytes of
Address
.meth uuid(String: string): uuid | error
Parses
String
as a UUID, returning an error ifString
does not have the correct format.import: uuid("util/uuid") uuid("5fe1af82-02f9-429a-8787-4a7c16628a02") :> 5fe1af82-02f9-429a-8787-4a7c16628a02 uuid("test") :> error("UUIDError", "Invalid UUID string")
meth uuid(): uuid
Returns a new random UUID.
import: uuid("util/uuid") uuid() :> 1bf60d75-719f-488d-9e00-b56dd6ea73f5
meth (Arg₁: uuid) <> (Arg₂: uuid)
TBD
meth (Buffer: string::buffer):append(UUID: uuid)
Appends a representation of
UUID
toBuffer
.