All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| var list = [...]int{1, 2, 3, 4, 5} | |
| func main() { |
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy https://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| npm config delete proxy |
| func PathExist(_path string) bool { | |
| _, err := os.Stat(_path) | |
| if err != nil && err.Error() == os.ErrNotExist.Error() { | |
| return false | |
| } | |
| return true | |
| } | |
| // golang新版本的应该 | |
| func PathExist(_path string) bool { |