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.