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
+5.7k Linux/Unix/PHP : Restart PHP-FPM
+7.7k Golang : Mapping Iban to Dunging alphabets
+7.7k Golang : get the current working directory of a running program
+9.6k Golang : Quadratic example
+23.1k Golang : simulate tail -f or read last line from log file example
+12.7k Golang : zlib compress file example
+9.5k Golang : Extract or copy items from map based on value
+10.5k Golang : Create matrix with Gonum Matrix package example
+8.8k Android Studio : Image button and button example
+15.2k JavaScript/JQuery : Detect or intercept enter key pressed example
+27.5k Golang : Convert integer to binary, octal, hexadecimal and back to integer