Use a real GUI framework (not really Electron), to let people know that web server is running (without showing the Terminal).
I use systray to show web server in Notification Area.
And, xgo to build cross-platform from Linux; yet I can run in Windows and macOS.
But when it touches native GUI and CGO, it's not without troubles...
The app is here. It's super small, but most of the size comes from fonts and SQLite database.