isacikgoz / tldr

fast and interactive tldr client written with go
https://isacikgoz.me/tldr/
MIT License
1.38k stars 48 forks source link

Go get error "not enough arguments in call to d.prompt.Run" #30

Closed nguyentritai2906 closed 4 years ago

nguyentritai2906 commented 4 years ago

I have no experience with go get and I can't find any similar solution on the web so please excuse my ignorance. Here's the error output:

~ 🞂🞂 go get github.com/isacikgoz/tldr/cmd/tldr

# github.com/isacikgoz/tldr/cli
go/src/github.com/isacikgoz/tldr/cli/default.go:59:21: not enough arguments in call to d.prompt.Run
        have ()
        want (context.Context)
thepenguinthatwants commented 4 years ago

Quite annoiying problem as I've tried to figure this out whole day without any solution.

ghost commented 4 years ago

$ GO111MODULE=on go get -u github.com/isacikgoz/tldr

nguyentritai2906 commented 4 years ago

Thank you, it works. For other noobs like me, you need to add these lines to your zshrc or bashrc:

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin