Error installing package with go get in go language

error installing package with go get in go language:

 go get -u github.com/spf13/viper
package golang.org/x/text/transform: unrecognized import path "golang.org/x/text/transform" (https fetch: Get https://golang.org/x/text/transform?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.)
package golang.org/x/text/unicode/norm: unrecognized import path "golang.org/x/text/unicode/norm" (https fetch: Get https://golang.org/x/text/unicode/norm?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.)

what is the reason for this?
it doesn"t work even if the blue light is turned on. I thought the blue light didn"t work, and then I specifically applied for Google Cloud vps (free for 1 year) to build a ss,. What do the big guys do when they can access golang.org, in the browser?

Nov.05,2021

git clone this item https://github.com/golang/text
is placed under $GOPATH/src/golang.org/x/
all golang.org/x 's, Go to github.com/golang to find
in addition. import golang.org does not mean to download


you just enable ss, but your terminal does not go to ss
proxychains4 to learn about the configuration and run it:
proxychains4 go get xxxxxxxx


you need to set up a proxy for the terminal and cooperate with two methods of ss:

  1. temporary use, set the environment variable, ALL_PROXY=ss local port , so that everything is proxied.
  2. long-term use, it is easy to use proxychains, settings to hang up the blog, do not post links, you can own Baidu or google.

configure the terminal with a proxy


that's right. You should only configure the ss proxy channel in the browser, but there is still no ss channel configured in the terminal


.

try the latest go mod replace

module example.com/hello

require (
    golang.org/x/text v0.3.0
)

replace (
    golang.org/x/text => github.com/golang/text v0.3.0
)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b1cb-4eed0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b1cb-4eed0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?