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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.