11# :cloud : Air - Live reload for Go apps
22
3- [ ![ Go] ( https://github.com/air-verse/air/actions/workflows/release.yml/badge.svg )] ( https://github.com/air-verse/air/actions?query=workflow%3AGo+branch%3Amaster ) [ ![ Codacy Badge] ( https://app.codacy.com/project/badge/Grade/dcb95264cc504cad9c2a3d8b0795a7f8 )] ( https://www.codacy.com/gh/air-verse/air/dashboard?utm_source=github.com& ; utm_medium=referral& ; utm_content=air-verse/air& ; utm_campaign=Badge_Grade ) [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/air-verse/air )] ( https://goreportcard.com/report/github.com/air-verse/air ) [ ![ codecov] ( https://codecov.io/gh/air-verse/air/branch/master/graph/badge.svg )] ( https://codecov.io/gh/air-verse/air )
3+ [ ![ Go] ( https://github.com/air-verse/air/actions/workflows/release.yml/badge.svg )] ( https://github.com/air-verse/air/actions?query=workflow%3AGo+branch%3Amaster ) [ ![ Codacy Badge] ( https://app.codacy.com/project/badge/Grade/dcb95264cc504cad9c2a3d8b0795a7f8 )] ( https://www.codacy.com/gh/air-verse/air/dashboard?utm_source=github.com&utm_medium=referral&utm_content=air-verse/air&utm_campaign=Badge_Grade ) [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/air-verse/air )] ( https://goreportcard.com/report/github.com/air-verse/air ) [ ![ codecov] ( https://codecov.io/gh/air-verse/air/branch/master/graph/badge.svg )] ( https://codecov.io/gh/air-verse/air )
44
55![ air] ( docs/air.png )
66
@@ -20,16 +20,26 @@ Note: This tool has nothing to do with hot-deploy for production.
2020
2121## Features
2222
23- * Colorful log output
24- * Customize build or any command
25- * Support excluding subdirectories
26- * Allow watching new directories after Air started
27- * Better building process
23+ - Colorful log output
24+ - Customize build or any command
25+ - Support excluding subdirectories
26+ - Allow watching new directories after Air started
27+ - Better building process
2828
2929### Overwrite specify configuration from arguments
3030
3131Support air config fields as arguments:
3232
33+ You can view the available command-line arguments by running the following commands:
34+
35+ ```
36+ air -h
37+ ```
38+ or
39+ ```
40+ air --help
41+ ```
42+
3343If you want to config build command and run command, you can use like the following command without the config file:
3444
3545``` shell
@@ -46,7 +56,7 @@ air --build.cmd "go build -o bin/api cmd/run.go" --build.bin "./bin/api" --build
4656
4757### Via ` go install ` (Recommended)
4858
49- With go 1.22 or higher:
59+ With go 1.23 or higher:
5060
5161``` bash
5262go install github.com/air-verse/air@latest
@@ -209,7 +219,7 @@ services:
209219
210220` ` ` Dockerfile
211221# Choose whatever you want, version >= 1.16
212- FROM golang:1.22 -alpine
222+ FROM golang:1.23 -alpine
213223
214224WORKDIR /app
215225
@@ -245,12 +255,12 @@ services:
245255` ` ` shell
246256export GOPATH=$HOME/xxxxx
247257export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
248- export PATH=$PATH:$(go env GOPATH)/bin <---- Confirm this line in you profile!!!
258+ export PATH=$PATH:$(go env GOPATH)/bin # Confirm this line in your . profile and make sure to source the .profile if you add it !!!
249259` ` `
250260
251261# ## Error under wsl when ' is included in the bin
252262
253- Should use `\` to escape the `' in the bin. related issue : [#305](https://github.com/air-verse/air/issues/305)
263+ Should use `\` to escape the `'` in the bin. related issue : [#305](https://github.com/air-verse/air/issues/305)
254264
255265# ## Question: how to do hot compile only and do not run anything?
256266
@@ -263,12 +273,11 @@ Should use `\` to escape the `' in the bin. related issue: [#305](https://github
263273
264274# ## How to Reload the Browser Automatically on Static File Changes
265275
266-
267276Refer to issue [#512](https://github.com/air-verse/air/issues/512) for additional details.
268277
269- * Ensure your static files in `include_dir`, `include_ext`, or `include_file`.
270- * Ensure your HTML has a `</body>` tag
271- * Activate the proxy by configuring the following config:
278+ - Ensure your static files in `include_dir`, `include_ext`, or `include_file`.
279+ - Ensure your HTML has a `</body>` tag
280+ - Activate the proxy by configuring the following config :
272281
273282` ` ` toml
274283[proxy]
0 commit comments