19 lines
199 B
Go
19 lines
199 B
Go
package assets
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
"os"
|
|
)
|
|
|
|
func New() fs.FS {
|
|
return embedded
|
|
}
|
|
|
|
//go:embed tailwind.css fonts/*
|
|
var embedded embed.FS
|
|
|
|
func Dev(dir string) fs.FS {
|
|
return os.DirFS(dir)
|
|
}
|