exec:“ sqlboiler”:在$ PATH中找不到可执行文件

After installed SqlBoiler.

Copy and paste simple codes in main.go and execute postgresql to create databases.

I generated Go models by doing:

go generate

I got an error:

running "sqlboiler": exec: "sqlboiler": executable file not found in $PATH

I've watched SQLBoiler Screencast but it's assumed user pre configured Sql Boiler

What am i missing?

The screencast starts with

go get -u -t github.com/vattle/sqlboiler

That step alone should compile and install sqlboiler in your $GOPATH/bin folder. Make sure that folder is part of your PATH.