danfragoso / thdwb

🌭 The hotdog web browser and browser engine 🌭
MIT License
1.13k stars 58 forks source link

assets are stale #45

Open neurlang opened 9 months ago

neurlang commented 9 months ago

I don't think the assets (icons) compile any more. No code generation occurs at compile time. TODO: Fix by using embed fs:

//go:embed assetdir/*.html
//go:embed assetdir/*.png
var content embed.FS

the data bytes can then be read using

data, _ := content.ReadFile(name)

convert callers, hardcode string resource names instead of public funcs