CanAutoUpdate reports whether the current binary is built with auto-update support and, if so, whether the current platform supports it.
()
| 24 | // CanAutoUpdate reports whether the current binary is built with auto-update |
| 25 | // support and, if so, whether the current platform supports it. |
| 26 | func CanAutoUpdate() bool { |
| 27 | if testAllowAutoUpdate() { |
| 28 | return true |
| 29 | } |
| 30 | if f, ok := HookCanAutoUpdate.GetOk(); ok { |
| 31 | return f() |
| 32 | } |
| 33 | return false |
| 34 | } |
| 35 | |
| 36 | // HookProxyFromEnvironment is a hook for feature/useproxy to register |
| 37 | // a function to use as http.ProxyFromEnvironment. |
searching dependent graphs…