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
+12.1k Golang : calculate elapsed run time
+23k Golang : Randomly pick an item from a slice/array example
+9.6k Golang : List available AWS regions
+9.9k Golang : Convert octal value to string to deal with leading zero problem
+25.2k Golang : Get current file path of a file or executable
+13.7k Generate salted password with OpenSSL example
+14k Javascript : Prompt confirmation before exit
+14.5k Golang : Reset buffer example
+14.8k Golang : Basic authentication with .htpasswd file
+4.8k Nginx and PageSpeed build from source CentOS example
+27.4k Golang : dial tcp: too many colons in address
+8.5k Golang : Convert(cast) []byte to io.Reader type