Hello! Has anyone been using the buffalo web framework? If the answer is yes, you might know how to help me. Using Buffalo i've built a a full binary of my application on my Linux enviroment. This binary works across multiple linux distros and MacOS. But when i try to run it on a windows machine, i'm unable to do it. Do i need to make a build specific for Windows? If so, how? Any help is welcome.
评论:
metacasts:
Go, and Buffalo, require you set the GOOS/GOARCH you want to build for.
So, for example, if you wanted to build your app for windows, you would do something like:
GOOS=windows buffalo build
One thing to watch out for though, if you use any CGO, such as sqlite or some other C library, cross compilation is very difficult. I usually recommend building on the OS you want need to build the binary for in those situations.
