terraria-companion/embed_data.go
Felipe M. 0915d43e56
Some checks failed
ci/woodpecker/tag/release Pipeline failed
ci/woodpecker/push/ci Pipeline failed
refactor: move icons from public/icons to data/icons and support embedding
Icons are now stored in data/icons alongside other data files. When built
with embed_data tag, icons are embedded into the binary via embed.FS.
Server serves icons from disk first (for hot-reload), falling back to
embedded FS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 00:28:30 +01:00

20 lines
334 B
Go

//go:build embed_data
package main
import "embed"
//go:embed data/items.json
var embeddedItemsJSON []byte
//go:embed data/recipes.json
var embeddedRecipesJSON []byte
//go:embed data/drops.json
var embeddedDropsJSON []byte
//go:embed data/splashes.json
var embeddedSplashesJSON []byte
//go:embed data/icons
var iconsFS embed.FS