Problems that air may encounter when running on other versions of go
The go development version used in the community tutorial is version 1.15, and the development version I tried is 1.16.5, some problems will occur. Here I will summarize the problems encountered when using air. [Recommended tutorial: golang]
You cannot directly run the following command line command on the tutorial:
The first step is to run the following command to change the settings:
The second step is to run the command to install air:
After completing the above two steps and running air, the following error will still be reported:
It can be seen from the above that the error is caused by the lack of go.mod file. You can run go mod init under the goblog folder to solve this error. If you run air, the error will not be reported.
For more golang related technical articles, please visit golang Tutorial column!
The above is the detailed content of Summarize the problems that air may encounter when running on other versions of go. For more information, please follow other related articles on the PHP Chinese website!