---
url: /zh/examples/other-languages/golang.md
---
Xmake 也支持 GO 程序的构建，也提供了空工程的创建命令支持:

```sh
$ xmake create -l go -t console test
```

v2.3.6版本，xmake对其的构建支持做了一些改进，对go的交叉编译也进行了支持，例如我们可以在macOS和linux上编译windows程序：

```sh
$ xmake f -p windows -a x86
```

更多例子见：[Go Examples](https://github.com/xmake-io/xmake/tree/master/tests/projects/go)
