Go get error "not enough arguments in call to d.prompt.Run"
Closed this issue ยท 3 comments
nguyentritai2906 commented
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
Quite annoiying problem as I've tried to figure this out whole day without any solution.
Deleted user commented
$ GO111MODULE=on go get -u github.com/isacikgoz/tldr
nguyentritai2906 commented
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