storage

package
Version: v0.0.0-...-bc4fcfc Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 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.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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