Is gorilla/mux still utilized? 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?
go: go.mod data not located in existing directory site or any kind of moms and dad directory site.
‘ go obtain’ is no more sustained outside a component.
To develop and also mount a command, usage ‘go mount’ with a variation,
like ‘go mount 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 mount’.
Yes it’s still utilized. You’re obtaining that message since you really did not boot up a component in your existing directory site. Take into consideration the following:
# Does not function since I have not booted up a component. $ go obtain github.com/gorilla/mux. go: go.mod data not located in existing directory site or any kind of moms and dad directory site. ' go obtain' is no more sustained outside a component. To develop and also mount a command, usage 'go mount' with a variation,. like 'go mount example.com/cmd@latest'. To learn more, see https://golang.org/doc/go-get-install-deprecation. or run 'go aid obtain' or 'go assist mount'. # So I'll boot up a component. $ go mod init forum.golangbridge.org/testproject. go: producing brand-new go.mod: component forum.golangbridge.org/testproject. # As well as 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 aware of components yet. Offer this a reviewed if you intend to begin:
Likewise, gorilla/mux is in archive setting:
Yet I can not envision it will not be kept by someone, and also because it is stdlib suitable it is still secure to utilize IMO. It’s likewise been fight examined for several years and also most likely does not require to alter a lot.