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>
12 lines
229 B
Go
12 lines
229 B
Go
//go:build !embed_data
|
|
|
|
package main
|
|
|
|
import "embed"
|
|
|
|
var embeddedItemsJSON = []byte("[]")
|
|
var embeddedRecipesJSON = []byte("[]")
|
|
var embeddedDropsJSON = []byte("[]")
|
|
var embeddedSplashesJSON = []byte("[]")
|
|
|
|
var iconsFS embed.FS
|