From 7a8d3cad49e6c9fc6de8d8bc25b4c36e80a79bcd Mon Sep 17 00:00:00 2001 From: Madhurjya Roy Date: Wed, 14 Aug 2024 23:37:52 +0530 Subject: [PATCH] doc: update build instruction --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 938d525..33cb563 100644 --- a/README.md +++ b/README.md @@ -20,16 +20,19 @@ This can be helpful for _debugging_ metrics themselves, and to prevent polluting ### Install with Go ``` -go install github.com/mroyme/dogstatsd-local/cmd/dogstatsd-local@latest +$ go install github.com/mroyme/dogstatsd-local/cmd/dogstatsd-local@latest ``` ### Build Manually -This is a go application with no external dependencies. Building should be as simple as running `go build` in the source directory. +Run the following command in the source directory. +```bash +$ go build -o bin/dogstatsd-local ./cmd/dogstatsd-local/main.go +``` Once compiled, the `dogstatsd-local` binary can be run directly: ```bash -$ ./dogstatsd-local -port=8126 +$ ./bin/dogstatsd-local -port=8126 ``` ### Prebuilt Binaries