uuid
Generated by tinox doc
tinox.core.uuid, bundled with the compiler and also available as a standalone tinox-central package.
Generate and validate
import tinox.core.uuid
class Main
{
fnc main() -> Int32
{
const id: String = Uuid::generate()
println(id)
println(Uuid::isValid(id).toString())
println(Uuid::isValid("not-a-uuid").toString())
return 0
}
}
class Uuid
Fields
value | String |
Methods
fn nibbleToHex(n: Int64) → String
fn byteToHex(b: Int64) → String
fn generate() → String
fn fromString(s: String) → Uuid
fn toString() → String
fn isValid(s: String) → Bool