4 ms·
I was able to do this in recent Go with stdlib embed - https://pkg.go.dev/embed https://pkg.go.dev/embed //go:embed player.html var player_html []byte
by mhio 5y ago
I was able to do this in recent Go with stdlib embed - https://pkg.go.dev/embed https://pkg.go.dev/embed
//go:embed player.html
var player_html []byte
- veonik 5y agonice to see that in the stdlib! I don't see any mention of compression, I assume that can just be handled by something like upx, right?
- lifthrasiir 5y agoUPX would decompress the entire executable at once, which might or might not be okay for your use case.