Golang : "https://" not allowed in import path
Problem :
Attempt to go get
packages return this error message
"https://" not allowed in import path
Solution :
Changing https:
to http:
won't help. Instead, remove the https://
or http://
entirely.
For example :
go get github.com/name/examplepackage
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+15.7k Golang : Get own process identifier
+6.5k Golang : Set horizontal, vertical scroll bars policies and disable interaction on Qt image
+8.2k Golang : Generate Codabar
+9.2k Golang : Convert file content to Hex
+13.7k Golang : Accurate and reliable decimal calculations
+19.8k Golang : How to read float value from standard input ?
+7.1k Golang : Tell color name with OpenCV example
+22.9k Golang : How to validate URL the right way
+5.8k Golang : Warp text string by number of characters or runes example
+2.7k Java : Get FX sentiment from website example
+35.3k Golang : Convert(cast) int64 to string
+11.5k Golang : zlib compress file example