Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 667 Bytes

README.md

File metadata and controls

40 lines (30 loc) · 667 Bytes

Web GUI Example

An example of creating a web GUI for a desktop Go application that compiles into a single executable file and opens in the default browser.


Structure:

/public — frontend (GUI)
/server — API backend (local server)
/src — main app logic (business layer)

Build:

go build web_gui_example.go

Run:

go run web_gui_example.go

Flags:

  -d    Run in debug mode
  -p uint
        A port for the local app server between 1024 and 49151 (default 8099)

Just as an example, the system monitor app with live update:

On Windows: windows

On Ubuntu (under WSL2): ubuntu