rakyll / statik

Embed files into a Go executable
Apache License 2.0
3.76k stars 224 forks source link

statik: Command not found #67

Open SynergyNodes opened 5 years ago

SynergyNodes commented 5 years ago

Hello,

I executed the following command

go get github.com/rakyll/statik

No errors after the above command. However, when I try the following command, I get the error. "statik: Command not found".

statik -src=/path/to/your/project/public

How do I solve this?

Regards, Harish

dolmen commented 5 years ago

Check your $PATH to see if contains $(go env GOPATH)/bin. In any case that's not an issue specific to statik but more general to your Go development environment.

sknightq commented 4 years ago

In Linux, I'm using following steps to solve it.

// 1.Get the GOPATH
go env
// 2.Open ~/.profile and add your GOPATH, if your GOPATH is "~/go-packages"
export=~/go-packages/bin:$PATH
// 3.Reload
source ~/.profile