Call Go directly
Any Go package is one import away, with Go types mapped to TypeScript.
import { Println, Sprintf } from 'go:fmt';
import { ToUpper } from 'go:strings';
import * as runtime from 'go:runtime';
Println(Sprintf('Hello, %s!', ToUpper('gophers')));
Println('built for', runtime.GOOS + '/' + runtime.GOARCH);
Hello, GOPHERS!
built for windows/amd64