From 674878bc0c0991336944dfe1159bd66cb3a42491 Mon Sep 17 00:00:00 2001 From: xiantang Date: Mon, 16 Oct 2023 17:34:32 +0800 Subject: [PATCH] update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2e7a744e..82248c94 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,14 @@ Use a comma to separate items for arguments that take a list as input: ## Installation -### Prefer install.sh +### Prefer `go install` (Recommend) + +With go 1.18 or higher: + +```bash +go install github.com/cosmtrek/air@latest +``` +### Via install.sh ```bash # binary will be $(go env GOPATH)/bin/air @@ -52,13 +59,6 @@ curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh air -v ``` -### Via `go install` - -With go 1.18 or higher: - -```bash -go install github.com/cosmtrek/air@latest -``` ### Docker @@ -259,4 +259,4 @@ Give huge thanks to lots of supporters. I've always been remembering your kindne ## License -[GNU General Public License v3.0](LICENSE) \ No newline at end of file +[GNU General Public License v3.0](LICENSE)