Skip to content

Commit

Permalink
更新热重载文档
Browse files Browse the repository at this point in the history
  • Loading branch information
guok committed Jan 29, 2024
1 parent b0cc4dc commit a513c87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ go install github.com/cosmtrek/air@latest

## 配置文件

这里可以直接使用 air init 方式创建,或者使用以下文件
这里可以直接使用 air init 方式创建(推荐),或者使用以下文件

```
# air.toml
Expand All @@ -206,6 +206,8 @@ entry = "main.go"
watch = ["."]
# 指定命令
cmd = "go run main.go"
# 监听的文件类型
include_ext = ["go", "tpl", "tmpl", "html", "js"]
# 延迟重新构建
delay = 3000
```
Expand Down

0 comments on commit a513c87

Please sign in to comment.