init
This commit is contained in:
commit
d69342b2e9
160 changed files with 28681 additions and 0 deletions
15
internal/build/assets/assets.go
Normal file
15
internal/build/assets/assets.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package assets
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//go:embed css js
|
||||
var staticFS embed.FS
|
||||
|
||||
func Handler() http.Handler {
|
||||
sub, _ := fs.Sub(staticFS, ".")
|
||||
return http.FileServer(http.FS(sub))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue