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
+10.1k Swift : Convert (cast) Int or int32 value to CGFloat
+15.6k Convert JSON to CSV in Golang
+3.4k Golang : A program that contain another program and executes it during run-time
+13.9k Golang : Check if a string contains multiple sub-strings in []string?
+3.7k Unix/Linux/MacOSx : How to remove an environment variable ?
+11.1k Golang : Compress and decompress file with compress/flate example
+13.7k Golang : Set up source IP address before making HTTP request
+9.8k SSL : The certificate is not trusted because no issuer chain was provided
+21.7k Golang : Find biggest/largest number in array
+15.9k Golang : Get current URL example
+9.2k Golang : Get remaining text such as id or filename after last segment in URL path
+4.5k Golang : Shuffle array of list