For more details check out the blog post at: https://www.liip.ch/en/blog/embed-sveltekit-into-a-go-binary
You'll need a recent go and node version.
git clone https://github.com/munxar/goapi
cd goapi
go generate ./...
go build
./goapi
Now open a browser http://localhost:3001 for the api or http://localhost:3001/admin for the admin ui.