experiments

All kinds of coding experiments
Log | Files | Refs | Submodules

static_prod.go (209B)


      1 //go:build !dev
      2 
      3 package main
      4 
      5 import "embed"
      6 
      7 //go:embed frontend/public/*
      8 var static embed.FS
      9 
     10 func readStaticFile(filepath string) ([]byte, error) {
     11 	return static.ReadFile("frontend/public/" + filepath)
     12 }