Skip to content

Commit 438626c

Browse files
Update README.md
add go install
1 parent 291045d commit 438626c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ To use hashgen, type your mode, wordlist input & hash output files with a simple
7676
### Compile hashgen from source:
7777
- If you want the latest features, compiling from source is the best option since the release version may run several revisions behind the source code.
7878
- This assumes you have Go and Git installed
79-
- `git clone https://github.com/cyclone-github/hashgen.git`
80-
- `cd hashgen`
81-
- `go mod init hashgen`
82-
- `go mod tidy`
83-
- `go build -ldflags="-s -w" hashgen.go`
79+
- `git clone https://github.com/cyclone-github/hashgen.git` # clone repo
80+
- `cd hashgen` # enter project directory
81+
- `go mod init hashgen` # initialize Go module (skips if go.mod exists)
82+
- `go mod tidy` # download dependencies
83+
- `go build -ldflags="-s -w" .` # compile binary in current directory
84+
- `go install -ldflags="-s -w" .` # compile binary and install to $GOPATH
8485
- Compile from source code how-to:
8586
- https://github.com/cyclone-github/scripts/blob/main/intro_to_go.txt
8687

0 commit comments

Comments
 (0)