Summarize the problems that air may encounter when running on other versions of go

藏色散人
Release: 2021-06-30 15:29:14
forward
1577 people have browsed it

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:
Summarize the problems that air may encounter when running on other versions of go
The first step is to run the following command to change the settings:
Summarize the problems that air may encounter when running on other versions of go
The second step is to run the command to install air:
Summarize the problems that air may encounter when running on other versions of go
After completing the above two steps and running air, the following error will still be reported:
Summarize the problems that air may encounter when running on other versions of go
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.
Summarize the problems that air may encounter when running on other versions of go 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!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!