Skip to content

goiste/web_gui_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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