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
+4.8k Linux : Disable and enable IPv4 forwarding
+8.3k Golang : Changing a RGBA image number of channels with OpenCV
+10.6k Linux : How to install driver for 600Mbps Dual Band Wifi USB Adapter
+6.3k Golang : How to stop user from directly running an executable file?
+26k Golang : Record voice(audio) from microphone to .WAV file
+10.6k Golang : Setup API server or gateway with Caddy and http.ListenAndServe() function example
+6.1k Golang : Validate credit card example
+21.2k Generate checksum for a file in Go
+34.2k Golang : Validate IP address
+5.7k Golang : Find the shortest line of text example
+28k Golang : missing Git command
+6.4k Golang : Hue, Saturation and Value(HSV) with OpenCV example