mirror of
https://github.com/kevin-DL/gothstarter.git
synced 2026-01-11 01:54:32 +00:00
17 lines
255 B
Go
17 lines
255 B
Go
//+build dev
|
|
//go:build dev
|
|
// +build dev
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
"os"
|
|
)
|
|
|
|
func public() http.Handler {
|
|
fmt.Println("building static files for development")
|
|
return http.StripPrefix("/public/", http.FileServerFS(os.DirFS("public")))
|
|
}
|