https://www.freecodecamp.org/news/exploratory-data-analysis-in-go-with-gota, `go get` is no longer supported outside a module it shout use `go install`
See original GitHub issueAffected page
https://www.freecodecamp.org/news/exploratory-data-analysis-in-go-with-gota/
To reproduce
go get github.com/oschwald/geoip2-golang
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
it should fix to go install github.com/go-gota/gota@latest
Expected behavior
Screenshots
System
Additional context
Issue Analytics
- State:
- Created a year ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Deprecation of 'go get' for installing executables
Starting in Go 1.17, installing executables with go get is deprecated. go install may be used instead. In Go 1.18, go get will...
Read more >Where does go install the binaries of go get? - Stack Overflow
go : go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To...
Read more >All you need to know about Go version 1.11 - freeCodeCamp
The quickest way to take advantage of the new module support is to check out your repository into a directory outside, create a...
Read more >How to Use Go Modules | DigitalOcean
A Go module commonly consists of one project or library and contains a ... To set this up, follow the How To Install...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@scissorsneedfoodtoo
in code write
soon, in Terminal run
it will auto deal with golang package.
The golang code in the article can not run directly, it need change code, it is not firend for beginner。 golang is not javascript.
Thanks again for your patience and for reporting this @luojiyin1987. Also, thanks for your helpful suggestions on installing the Gota package.
I spent some time over the last couple of days updating this article and the code used throughout. Now it should be much easier for readers to install Gota and follow along locally.
Will close this for now. Please feel free to reopen this issue and @ mention me if there are any other issues with this article.