From fe8fe975d85f26fd50450159d61325f13e9d9b81 Mon Sep 17 00:00:00 2001 From: Grey Date: Fri, 13 Oct 2023 12:29:12 -0400 Subject: [PATCH] chore(readme): update install code fences (#614) --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9445077..81dc24e 100644 --- a/README.md +++ b/README.md @@ -35,17 +35,23 @@ Goose supports [embedding SQL migrations](#embedded-sql-migrations), which means # Install - $ go install github.com/pressly/goose/v3/cmd/goose@latest +```shell +go install github.com/pressly/goose/v3/cmd/goose@latest +``` This will install the `goose` binary to your `$GOPATH/bin` directory. For a lite version of the binary without DB connection dependent commands, use the exclusive build tags: - $ go build -tags='no_postgres no_mysql no_sqlite3' -o goose ./cmd/goose +```shell +go build -tags='no_postgres no_mysql no_sqlite3' -o goose ./cmd/goose +``` For macOS users `goose` is available as a [Homebrew Formulae](https://formulae.brew.sh/formula/goose#default): - $ brew install goose +```shell +brew install goose +``` See the docs for more [installation instructions](https://pressly.github.io/goose/installation/).