Build and run

This simple application can be run directly with go run hello.go, or built using go build hello.go and then run using the compiled binary:

Compiling or running directly works the same on any supported system

Running the code should produce a simple app that looks like the following. Clicking the Quit button or closing the window will exit the application:

Running Hello World on macOS
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.140.197.136