grand

command module
v0.0.0-...-9e04788 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 10 Imported by: 0

README

gRand Builds Go Report Card Coverage Security Rating GoDoc

gRand is a random string generator.

It supports:

  • alphanumeric (uppercase, lowercase, mixed)
  • alphabetic (uppercase, lowercase, mixed)
  • hex (uppercase, lowercase, mixed)
  • numeric
  • uuid (uppercase, lowercase)

Installation

There are several ways to download and install the grand client.

Binary Releases

The preferred method is to download the latest binary release for your platform from the Github Releases section.

Using Docker

If you already use Docker, gRand is packaged into a very small, OS-less image (~1.5 Mb compressed, 4 Mb uncompressed). To learn more about the Docker image, see the Github Packages section.

Basic usage

docker run --rm -it ghcr.io/thoom/grand
Using Go

Finally, you can also just build it directly on your machine if you already have Go installed:

go install github.com/thoom/grand@latest

Usage

-case string
    upper, lower, mixed (default "mixed")
-length int
    Length of the string (default 32)
-repeat int
    number of times to run (default 1)
-type string
    alphanum, alpha, hex, num, uuid (default "alphanum")
-version
    current version

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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