Hi Alex. I am newbie to GoKit. When i run "go get github.com/go-kit/kit", it gets the packages but returns an error "no Go files in /Users/username/go/src/github.com/go-kit/kit" and even after i install gokit CLI. i get the kit command not found issue. Can you help me out here a bit
go-kit is a collection of packages, so you should get specific one, like: go get github.com/go-kit/kit/sd, or all packages: go get github.com/go-kit/kit/....
When you install CLI by go get github.com/kujtimiihoxha/kit it installs into $GOPATH/bin, so you should add it to your system $PATH variable.
Hi Alex. I am newbie to GoKit. When i run "go get github.com/go-kit/kit", it gets the packages but returns an error "no Go files in /Users/username/go/src/github.com/go-kit/kit" and even after i install gokit CLI. i get the kit command not found issue. Can you help me out here a bit
go get github.com/go-kit/kit/sd
, or all packages:go get github.com/go-kit/kit/...
.go get github.com/kujtimiihoxha/kit
it installs into $GOPATH/bin, so you should add it to your system $PATH variable.I have the $GOPATH/bin added to my $PATH variable but still facing the Kit command not found issue. I have pasted below the output of my echo $PATH.
/usr/local/opt/node@8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/nikhil/Library/Android/sdk/tools:/Users/nikhil/Library/Android/sdk/tools/bin:/Users/nikhil/Library/Android/sdk/platform-tools:/usr/local/opt/go/libexec/bin
Can you please share how do you install Go Kit CLI?
Exactly like you mentioned
Go Kit CLI: go get github.com/kujtimiihoxha/kit
Then inside my project directory
And i used glide to install GoKit: glide get github.com/go-kit/kit
My $GOPATH is set to /usr/local/go/bin
My Project is on /Users/username/go/src/project
go get github.com/kujtimiihoxha/kit
you can findkit
in $GOPATH/bin/kitHey
I got it running. Thanks a ton Alex :)
Keep you the great work. Looking forward to more Go tutorials.
I also got trouble when try to install kit, it is not maintained anymore, but I found this
github.com/GrantZheng/kit