From ed8f1b16e198e218d3a33f519e8e601f581e911c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 25 Oct 2021 12:48:09 +0200 Subject: [PATCH] docs: add build instructions --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a512ee..b960c0b 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ 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: @@ -18,6 +18,19 @@ chmod +x /usr/local/bin/url-parser 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 ```Shell