Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
/ uuid Public archive
forked from samit22/uuid

CLI tool to generate UUID

License

Notifications You must be signed in to change notification settings

akrennmair/uuid

 
 

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/[email protected]/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

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%