Air: Live reload for Go apps

Air is yet another live-reloading command line utility for Go applications in development. Just air in your project root directory, leave it alone, and focus on your code.

Features

  • Colorful log output
  • Customize build or binary command
  • Support excluding subdirectories
  • Allow watching new directories after Air started
  • Better building process

Installation

go get -u github.com/cosmtrek/air

Usage

cd /path/to/your_project

# 1. create a new file
touch .air.toml

# 2. paste `air_example.toml` into this file, and **modify it**
# https://github.com/cosmtrek/air/blob/master/air_example.toml

# 3. run air with your config. If file name is `.air.toml`, just run `air`.
air
Publikováno v Go