中文 | English
APiER API Open Management Platform is an advanced API management and open platform that aims to provide enterprises and developers with an efficient, secure and easy-to-use API integration, management and sharing environment.
If you find that Go get fails, you can consider the following actions:
Open your terminal and execute
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
Open your terminal and execute
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
or
echo "export GO111MODULE=on" >> ~/.profile
echo "export GOPROXY=https://goproxy.cn" >> ~/.profile
source ~/.profile
Open your PowerShell and execute
C:\> $env:GO111MODULE = "on"
C:\> $env:GOPROXY = "https://goproxy.cn"
or
1. Open Start and search for "env"
2. Select "Edit System Environment Variables"
3. Click the "Environment Variables..." button
4. Under the "User Variables for <yourusername>" section (top half)
5. Click the “New…” button
6. Select the "Variable Name" input box and enter "GO111MODULE"
7. Select the "Variable value" input box and enter "on"
8. Click the "OK" button
9. Click the “New…” button
10. Select the "Variable Name" input box and enter "GOPROXY"
11. Select the "Variable Value" input box and enter "https://goproxy.cn"
12. Click the "OK" button
Directly execute go build main.go
go install github.com/cosmtrek/air@latest
air init
Multiple .toml
files can be set, such as business background service .air.api.toml, background
management service .air.web.toml
Take starting the background management service as an example. The toml file of the background management service is .air.web.toml. Then, the running command is run in the project root directory:
air -c .air.web.toml