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
+18.2k Golang : Get all upper case or lower case characters from string example
+10.9k Golang : Resolve domain name to IP4 and IP6 addresses.
+10k Golang : Get current, epoch time and display by year, month and day
+9.8k Golang : Quadratic example
+6.6k Golang : Break string into a slice of characters example
+7.4k CloudFlare : Another way to get visitor's real IP address
+9.4k Golang : Create and shuffle deck of cards example
+10.2k Golang : Test a slice of integers for odd and even numbers
+20.9k Golang : Read directory content with os.Open
+12.5k Golang : Get remaining text such as id or filename after last segment in URL path
+33.2k Delete a directory in Go