Skip to content
Li Shengqiu edited this page Sep 7, 2017 · 1 revision

What are tags?

Go tag is a way to achieve conditional compilation. In C, we can use #if - in Go, we can use tags.

How to use tags?

Simply add tags after -tags option. For example, -tags "gtk2 wxgo_binary_package_build".

Available tags

For now we provide several tags to meet different compilation needs.

  • gtk2

    This tag is only available for linux_amd64 currently. It will use the gtk2 version of wxWidgets, instead of the gtk3 version by default.

  • mingw_workaround

    This tag is to solve the #23 libuuid.a issue when compiling wxWidgets.

  • wxgo_binary_package_build

    This tag is used for building binary-only-packages.