Today, when writing the gin interface, every time you add or modify an interface, you need to restart the project to test, which is very troublesome.
Because beego has bee tools, fsnotify, the start-up project of bee run, will monitor file changes. It is found that a plug-in in in iris project supports hot restart.
The usage is as follows:
#Install Rizla package
$ go get -u github.com/kataras/rizla
#Hot restart to start iris project
$ rizla main.go
It’s very convenient to use. Highly recommended.