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
+13.9k Golang : Get current time
+9.2k Golang : How to check if a string with spaces in between is numeric?
+13k Golang : Calculate elapsed years or months since a date
+7.1k Golang : A simple forex opportunities scanner
+15.9k Golang : Update database with GORM example
+11.1k Golang : Roll the dice example
+7.9k Golang : Trim everything onward after a word
+6.2k PHP : Get client IP address
+8.8k Golang : Executing and evaluating nested loop in html template
+12.3k Golang : 2 dimensional array example
+21.4k Curl usage examples with Golang