Member-only story

Wails, a cross-platform framework enables you to write desktop apps using Go

Emad Dehnavi
3 min readJun 28, 2024

Wails is a cross-platform framework and some people even call it an Electron alternative for Go which enables you to write desktop apps.

if you are not a Medium premium member, you can read it for free here.

Few days ago I came across Wails and built a simple app with it and I was like, “Man, this is so cool”. The cool thing about it is the varity of templates and support for the top frontend libs out there. They support Svelte, React, Vue, Preact, Lit, and even though there’s no template for Angular, but you can use Wails with Angular as well, plus you can use it in Vanilla Javascript.

Wails, a cross-platform framework enables you to write desktop apps using Go

Getting Started

Before installing Wails, you need to have the following already insatallled in your machine:

  • Go 1.20+
    Install it from https://go.dev/dl/ and once installed, run this in your terminal: echo $PATH | grep ~/go/bin If this command returns nothing, it means ~/go/bin is not currently in your PATH and you need to add it. You can do so by running export PATH=$PATH:~/go/bin in your terminal and reload the config file, ex. for Zsh source ~/.zshrc ( or just close and open your terminal ). You can verify the pat by running echo $PATH | grep ~/go/bin again and run go version to verify your Go instllation.

--

--

Emad Dehnavi
Emad Dehnavi

Written by Emad Dehnavi

With 8 years as a software engineer, I write about AI and technology in a simple way. My goal is to make these topics easy and interesting for everyone.

No responses yet