vartanbeno / go-reddit

Go library for accessing the Reddit API.
Other
306 stars 84 forks source link

Unable to download: package github.com/vartanbeno/go-reddit: no Go files in /home/<username>/go/src/github.com/vartanbeno/go-reddit #5

Closed awildboop closed 3 years ago

awildboop commented 3 years ago

Whenever I try to download go-reddit using the command go get github.com/vartanbeno/go-reddit, I get the following error: package github.com/vartanbeno/go-reddit: no Go files in /home/<username>/go/src/github.com/vartanbeno/go-reddit.

I've tried about every fix that I can think of, including reinstalling go a couple times. I am running Ubuntu 20.04, GNU/Linux 5.4.0-58-generic. I am able to install other packages from Github.

awildboop commented 3 years ago

Update: I managed to get it downloaded by using go get github.com/vartanbeno/go-reddit@master, however I now get the following error in VS Code when importing:

could not import github.com/vartanbeno/go-reddit/reddit (cannot find package "github.com/vartanbeno/go-reddit/reddit" in any of 
    /usr/local/go/src/github.com/vartanbeno/go-reddit/reddit (from $GOROOT)
    /home/<username>/go/src/github.com/vartanbeno/go-reddit/reddit (from $GOPATH))