uid

package
v1.5.2-dev Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UID

type UID string

UID is a unique id

const NilUID UID = UID("")

NilUID is a placeholder for an empty ID

func New

func New() UID

New generates a UID

func Parse

func Parse(u string) UID

Parse converts a string to UID

func (UID) String

func (u UID) String() string

String converts a UID to a string

func (UID) Truncate

func (u UID) Truncate() UID

Truncate returns the truncated UID

Jump to

Keyboard shortcuts

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