This commit is contained in:
anthdm
2024-04-24 19:52:05 +02:00
commit af9c83cbd0
31 changed files with 1515 additions and 0 deletions

16
static_prod.go Normal file
View File

@@ -0,0 +1,16 @@
//go:build !dev
// +build !dev
package main
import (
"embed"
"net/http"
)
//go:embed public
var publicFS embed.FS
func public() http.Handler {
return http.FileServerFS(publicFS)
}