Tag Archives: golang.org/x/net/xxx

package golang.org/x/net/XXX: unrecognized import path “golang.org/x/net/xxx“…

bug:
package golang.org/x/net/websocket: unrecognized import path “golang.org/x/net/websocket”: https fetch: Get “https://golang.org/x/net/websocket?go-get=1”: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Causes.
When you need to use the corresponding package, the automatic download error
Solution.
File->Settings->Go->Go Modules
Check Start Go Module Integration and enter GOPROXY=https://goproxy.io, apply it, then go to download again.