Skip to content

nmcclain/uuid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UUID

Command line tool (CLI) to generate UUID or list of UUIDs.

Required Go version 1.17+

Installation

Run the following command

 go install github.com/samit22/uuid@latest

 uuid

If you get error something like

# golang.org/x/sys/unix
../../../.gvm/pkgsets/go1.19/global/pkg/mod/golang.org/x/sys@v0.0.0-20190624142023-c5567b49c5d0/unix/zsyscall_darwin_amd64.go:28:3: //go:linkname must refer to declared function or variable

Run: go get -u golang.org/x/sys This is due to the older version of sys

Available Commands:

  • uuid
    • Default command
  • uuid v4
    • uuid v4
      • Generates single uuid.
    • uuid v4 10
      • Generates list of 10 UUIDs. 10 here is an argument, can be between 1-100.
  • uuid check
    • uuid uuid_1
      • Checks if the uuid is a valid one.
    • uuid uuid_1   uuid_2
      • Validates each uuid format.
      • You can send as many argument as you want separated by a space.
  • uuid empty
    • Generates an empty uuid.
    • Can be used as uuid nil.

About

CLI tool to generate UUID

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%