question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Affected 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

image image image

System

Additional context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
luojiyin1987commented, Apr 30, 2022

@scissorsneedfoodtoo
in code write

import (
	"fmt"
	"github.com/go-gota/gota/dataframe"
	"strings"
)

soon, in Terminal run

go mod tidy
[luo@T430s learnGolang]$ go mod tidy              
go: finding module for package github.com/go-gota/gota/dataframe
go: found github.com/go-gota/gota/dataframe in github.com/go-gota/gota v0.12.0
go: downloading golang.org/x/net v0.0.0-20210423184538-5f58ad60dda6
go: downloading gonum.org/v1/gonum v0.9.1
go: downloading golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3
go: downloading gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0

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.

0reactions
scissorsneedfoodtoocommented, Aug 17, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found