docs: add build instructions

This commit is contained in:
Robert Kaussow 2021-10-25 12:48:09 +02:00
parent 4cd1483c51
commit ed8f1b16e1
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -8,7 +8,7 @@
Inspired by [herloct/url-parser](https://github.com/herloct/url-parser), a simple command-line utility for parsing URLs. Inspired by [herloct/url-parser](https://github.com/herloct/url-parser), a simple command-line utility for parsing URLs.
## Instalation ## Installation
Prebuild multiarch binaries are availabe for Linux only: Prebuild multiarch binaries are availabe for Linux only:
@ -18,6 +18,19 @@ chmod +x /usr/local/bin/url-parser
url-parser --help url-parser --help
``` ```
## Build
Build the binary from source with the following command:
```Shell
export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on
go build -v -a -tags netgo -o release/url-parser ./cmd/url-parser/
```
## Usage ## Usage
```Shell ```Shell