storage

package
v0.0.0-...-aa5bd6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetID

func GetID(prefix string) (string, error)

GetID returns a random ID string of the format prefix_random16chars, e.g. beer_ts72nf6ak8dts73g. This is a simple (naive) implementation using the rand package, just to avoid importing external UUID packages in this demo app. This implementation in no way guarantees uniqueness, so please don't use it for any production purposes!

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL