From e128d43f617f2da89038544007ffac405107e6ee Mon Sep 17 00:00:00 2001 From: Johannes Kaufmann Date: Fri, 27 Dec 2024 16:33:05 +0100 Subject: [PATCH] add "go install" command to readme --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 227f713..90d2a1b 100644 --- a/README.md +++ b/README.md @@ -233,6 +233,16 @@ _Note: Support for other Linux distributions is tracked in [#119](https://github Download pre-compiled binaries for Linux, macOS or Windows from the [releases page](https://github.com/JohannesKaufmann/html-to-markdown/releases). Extract the archive and copy the executable to a location in your system PATH (e.g. `/usr/local/bin`). +#### Installation via Go + +If you have Go installed, you can install the CLI directly using: + +```bash +go install github.com/JohannesKaufmann/html-to-markdown/v2/cli/html2markdown@latest +``` + +This will download the source code and compile it into an executable in your Go binary directory (typically `$GOPATH/bin`). + #### Build from Source Binaries are automatically built via [GoReleaser](https://goreleaser.com/) and attached to each [release](https://github.com/JohannesKaufmann/html-to-markdown/releases).