Golang hot compile Rizla plug-in


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.

Recommended Today

Second week of summer vacation (improve code and summarize problems)

preface: This week, we mainly reviewed and improved the unfinished refactoring tasks. In this process, we also encountered problems. We summarized them. At the same time, through continuous practice, we have a further understanding of the code of the tutorial. 1 Taking the management of teachers as an example, this paper analyzes the relationship between […]