-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
documentation/docs/tutorials/hello-world.md → ...entation/docs/tutorials/01-hello-world.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
--- | ||
title: Hello World | ||
position: 1 | ||
order: 1 | ||
--- | ||
|
||
# Hello world | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
# Hot reload | ||
|
||
Hot reload is a feature that allows you to update your code and see the changes in real-time without restarting the server. This is very useful for development, as it allows you to see the changes you make to your code immediately. | ||
|
||
To enable hot reload, you need to install the `air` command-line tool: | ||
|
||
```sh | ||
go install github.com/cosmtrek/air@latest | ||
``` | ||
|
||
Then, create a `.air.toml` file in the root of your project with the following content: | ||
|
||
```sh | ||
air init | ||
``` | ||
|
||
Finally, simply the following command to start the server with hot reload: | ||
|
||
```sh | ||
air | ||
``` |