I'm trying to install https://github.com/bouk/monkey on Ubuntu 20.
I tried the following commands:-
- go get -u github.com/bou.ke/monkey
- go install -v github.com/bou.ke/monkey
Still it throws the error "cannot find package "bou.ke/monkey" in any of"
Please advice what wrong am I doing. Thanks.
CodePudding user response:
I use this command
go get bou.ke/[email protected]
it can works
CodePudding user response:
Run go mod tidy
.
$ cat x.go
package main
import _ "bou.ke/monkey"
func main() {
println("bou.ke/monkey")
}
$ go mod tidy
go: finding module for package bou.ke/monkey
go: found bou.ke/monkey in bou.ke/monkey v1.0.2
$ go run x.go
bou.ke/monkey
$