Skip to content

timwmillard/uuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UUID generator

Command line tool to generate a random UUID.

Installation

go install github.com/timwmillard/uuid@latest

Usage

Generate a random UUID:

uuid

Generate a nil UUID:

uuid -nil

Generate a version 7 UUID:

uuid -v7

Default will generate a version 4 UUID.

Generate Multiple UUID's

Use the -n flag to generate multiple UUID's.

uuid -n=5

Why not uuidgen

  • uuidgen generates UUID's in capital letters (personal preference)
  • uuid is shorter to type (I know I could create an alias but this is funner).
  • Can generate different versions of uuid.
  • Can generate mutiple UUID's.