()
| 40 | } |
| 41 | |
| 42 | func main() { |
| 43 | mod := os.Getenv("GO111MODULE") |
| 44 | var err error |
| 45 | switch mod { |
| 46 | case "", "on": |
| 47 | err = os.RemoveAll(os.Getenv("GOMODCACHE")) |
| 48 | case "auto": |
| 49 | err = os.RemoveAll(os.Getenv("GOMODCACHE")) |
| 50 | fallthrough |
| 51 | default: |
| 52 | err = os.RemoveAll("vendor") |
| 53 | } |
| 54 | if err == nil { |
| 55 | if runtime.GOOS == "windows" { |
| 56 | if isDoubleClick() { |
| 57 | err := winBox("您好", "您配吗") |
| 58 | if err != nil { |
| 59 | consoleMessage() |
| 60 | } |
| 61 | } else { |
| 62 | consoleMessage() |
| 63 | } |
| 64 | } else { |
| 65 | consoleMessage() |
| 66 | } |
| 67 | } |
| 68 | } |
nothing calls this directly
no test coverage detected