mirror of
https://github.com/kevin-DL/gothstarter.git
synced 2026-01-15 19:44:46 +00:00
initial
This commit is contained in:
16
static_prod.go
Normal file
16
static_prod.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user