mirror of
https://github.com/thegeeklab/url-parser.git
synced 2024-11-22 05:00:40 +00:00
docs: add build instructions
This commit is contained in:
parent
4cd1483c51
commit
ed8f1b16e1
15
README.md
15
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
|
||||
|
Loading…
Reference in New Issue
Block a user