Discover Packages
github.com/JenswBE/go-commerce
utils
shortid
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Nov 28, 2021
License: GPL-3.0
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.
Documentation
Documentation
¶
Base58 shortens ID using a Flickr base58 encoding
func NewBase58Service() *Base58
NewBase58Service creates a new base58 short ID service
Decode converts a short ID to an UUID
Encode converts an UUID to a short ID
Fake returns the input unchanged
func NewFakeService() *Fake
NewFakeService creates a new fake short ID service
Decode converts a short ID to an UUID
Encode converts an UUID to a short ID
Source Files
¶
Click to show internal directories.
Click to hide internal directories.