jcbhmr / goosmjs

🟨 GOOS=js single-file output wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better GOOS=js

Installation

go install github.com/jcbhmr/goos-js2-go@latest

Usage

goos-js2-go build .

Development

idea

symlink everything in go/ except go/src/ then symlink go/src/cmd/ but nothing else. apply go.patch to go/ to add Import() and fs process stuff. do all this at runtime "build" cmd. then embed as Uint8Array.fromBase64(EMBEDSTRINGHERE) constant and tada!

About

🟨 GOOS=js single-file output wrapper

License:MIT License


Languages

Language:JavaScript 87.7%Language:Go 12.3%