16 lines
202 B
Go
16 lines
202 B
Go
|
|
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))
|
||
|
|
}
|