<p>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.</p>
<hr/>**评论:**<br/><br/>metacasts: <pre><p>Go, and Buffalo, require you set the GOOS/GOARCH you want to build for.</p>
<p>So, for example, if you wanted to build your app for windows, you would do something like:</p>
<p>GOOS=windows buffalo build</p>
<p>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.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传