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.7k Golang : Convert date string to variants of time.Time type examples
+8.6k Golang : How to protect your source code from client, hosting company or hacker?
+50.3k Golang : Check if item is in slice/array
+18k Golang : When to use public and private identifier(variable) and how to make the identifier public or private?
+18.3k Golang : Check if directory exist and create if does not exist
+5.8k Golang : Calculate pivot points for a cross
+5.2k Golang : Calculate US Dollar Index (DXY)
+28.3k Golang : missing Git command
+6.3k Nginx : How to block user agent ?
+9.8k Golang : Get local time and equivalent time in different time zone
+23.7k Golang : Change file read or write permission example
+8.1k Golang : HTTP Routing with Goji example