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
+19.4k Golang : Set or Add HTTP Request Headers
+12.7k Python : Convert IPv6 address to decimal and back to IPv6
+12.4k Golang : Remove or trim extra comma from CSV
+11.5k Golang : GTK Input dialog box examples
+19.3k Golang : How to Set or Add Header http.ResponseWriter?
+13.4k Golang : Activate web camera and broadcast out base64 encoded images
+10.8k Golang : Generate random elements without repetition or duplicate
+5.8k PageSpeed : Clear or flush cache on web server
+21.8k Golang : How to run Golang application such as web server in the background or as daemon?
+18.4k Golang : Implement getters and setters
+8.9k nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)