Command line tool (CLI) to generate UUID or list of UUIDs.
Required Go version 1.17+
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
- 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 v4
- 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 uuid_1
- uuid empty
- Generates an empty uuid.
- Can be used as uuid nil.