package
module
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Aug 15, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Base58 ID
Create random base58 ID's based on UUID's.
Motivation
I wanted the simplest possible way of generating unique base58 ID's.
Usage
id := b58iud.New() // e.g. "A3hYyNE2ZXNFJZbTenaB36"
License
The MIT License (MIT)
Copyright (c) 2024 Scott Barr
See LICENSE
Documentation
¶
Build returns an ID, and any error that could have occurred when generating a new UUID.
FromString returns a base58 encoded ID from a string. The input string must be parsable as a UUID.
FromUUID returns a base58 encoded ID from a UUID.
New returns a new ID.
Will panic if UUID generation fails.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.