Is gorilla/mux still made use of? Why do I obtain this mistake when I kind this command (obtain GitHub – gorilla/mux: An effective HTTP router and also link matcher for structure Go internet servers with) in terminal?
mistake
go: go.mod documents not located in present directory site or any kind of moms and dad directory site.
‘ go obtain’ is no more sustained outside a component.
To construct and also set up a command, usage ‘go set up’ with a variation,
like ‘go set up example.com/cmd@latest‘
To learn more, see Deprecation of ‘go obtain’ for setting up executables – The Go Shows Language
or run ‘go aid obtain’ or ‘go assist set up’.
Yes it’s still made use of. You’re obtaining that message due to the fact that you really did not boot up a component in your present directory site. Think about the following:
# Does not function due to the fact that I have not booted up a component.
$ go obtain github.com/gorilla/mux.
go: go.mod documents not located in present directory site or any kind of moms and dad directory site.
' go obtain' is no more sustained outside a component.
To construct and also set up a command, usage 'go set up' with a variation,.
like 'go set up example.com/cmd@latest'.
To learn more, see https://golang.org/doc/go-get-install-deprecation.
or run 'go aid obtain' or 'go assist set up'.
# So I'll boot up a component.
$ go mod init forum.golangbridge.org/testproject.
go: developing brand-new go.mod: component forum.golangbridge.org/testproject.
# And also currently all is well.
$ go obtain github.com/gorilla/mux.
go: included github.com/gorilla/mux v1.8.0.
It seems like you aren’t acquainted with components yet. Offer this a checked out if you wish to start:
Additionally, gorilla/mux is in archive setting:
However I can not picture it will not be preserved by someone, and also given that it is stdlib suitable it is still secure to make use of IMO. It’s likewise been fight examined for years and also possibly does not require to transform a lot.