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.2k Unix/Linux : secure copying between servers with SCP command examples
+20.2k Golang : Upload big file (larger than 100MB) to AWS S3 with multipart upload
+12.6k Golang : Gin framework accept query string by post request example
+7.6k Golang : Executing and evaluating nested loop in html template
+4.8k Linux : Disable and enable IPv4 forwarding
+7.3k Golang : How to check variable or object type during runtime?
+7.2k Golang : HTTP Server Example
+8k Golang : Serving HTTP and Websocket from different ports in a program example
+16.3k Google Chrome : Your connection to website is encrypted with obsolete cryptography
+25.7k Golang : Find files by name - cross platform example
+4.5k Golang : Frobnicate or tweaking a string example
+20.8k Golang : Securing password with salt