Build and Run

Building our Shiny hello world app is simple as Shiny has no native dependencies—we can simply build or run the hello.go file directly. Additionally, as many platform drivers are written without CGo, we can easily cross-compile for those operating systems. The following screenshot illustrates building for Linux and then Windows with no additional setup:

Building our hello app and running it with no CGo is easy

Note that building for macOS would require some additional setup, as its driver uses CGo (as described in the preceding Cross-compiling section of Getting started).

However you build or run the application, you should see ...

Get Hands-On GUI Application Development in Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.