Build a Desktop App with Go and HTML5
Channel: TechCode
Date: 2022-11-23

In this tutorial, you'll learn how to build a simple Desktop App with Go and HTML5
A Guide to Golang E-Commerce
☞ https://morioh.com/p/3d1f6febc8b4
Learn Go Programming - Golang Tutorial for Beginners
☞ https://morioh.com/p/1fd7a8edaf38
Basic HTML5 Template For Any Project
☞ https://morioh.com/p/5629f6ea4579

In this tutorial, you'll learn how to build a simple Desktop App with Go and HTML5, that doesn't look like it's from the 90s, neither it feels bloated like Electron. User interfaces have come a long way from punch cards and command line to post-WIMP era with touch screens and voice input. Modern UI is expected to be fast, responsive and smooth, with high-quality typefaces, rich images, animations, accessibility. HTML5 handles it all very well, and with GPU acceleration it has decent visual performance. Go may have stated itself as a language for writing services, but with Redux architecture GUI apps are not much different from request/response model. Having excellent performance, Go is a perfect fit for writing core app logic. The only thing that's missing is a link between HTML5 and Go, so that Go code could be called from the UI, and UI could be manipulated from Go.

HTML5 is often considered heavy because it requires a browser engine. We don't want to ship browser runtime with each and every app. One solution is to reuse the native OS runtime. Another is to use some pre-installed browser in the standalone app mode. Both end up with small, fast, self-contained binaries that are easy to build and to distribute.

I would like to briefly explain how each approach works, and how to choose one that fits better for your needs.

I'll introduce Webview1 and Lorca2 libraries and show how to build a quick desktop app in Go with either of those. I'll cover bootstrapping the new app, communication between Go and UI layer, debugging UI, building and packaging the app. I'll do the demonstration on Linux, but will show how to prepare the same app for Windows/MacOS.

#Golang #HTML5 #Morioh

PUBLICATION PERMISSIONS:
Original video was published with the Creative Commons Attribution license (reuse allowed)

CREDITS:
Original video source: https://www.youtube.com/watch?v=ANcU1g7ZWdU

Note: If you have any copyright issue with the content used in our channel or you find something that belongs to you, before you claim it to Youtube, SEND US A MESSAGE and the respective content will be DELETED right away. Thanks for understanding.

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
👕 Merchandise: https://www.moteefe.com/store/developer?cp=WP6JDT
🌎 Social Network for Developers: https://morioh.com/