Mitch's Blog

Embedding SPAs into Go webservices

DevOps Go

Recently I've become quite a fan of Go, a pragmatic and flexible programming language that has opened up new ways for me to build applications.

In this post, I wanna show how to embed an entire JavaScript/TypeScript SPA (Single Page Application) directly into your go binary to simplify the deployment of small applications. I've used this approach already in multiple smaller projects to streamline the build and deployment pipeline.