Build go into exe

I want to build my go program which is on github here. I use:

go -u

but when I try to run the created exe at $GOPATH/bin it says it can’t find my objs the res/GrassModel.obj. How do I get it to include the objs? thanks!

You can include the assets into binary.

Thank you! I wasn’t able to figure it out so I found packr which works perfectly

EDIT: just realized that I need to build with packr. It seems to have an error; something to do with memory. Guess I’m stuck to not knowing what to do. Maybe Ill figure out bindata

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.