isacikgoz/tldr

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

Closed this issue ยท 3 comments

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)

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

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

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