initial commit. Cloned timetracker repository
This commit is contained in:
16
assets/dev.go
Normal file
16
assets/dev.go
Normal file
@@ -0,0 +1,16 @@
|
||||
//go:build !embed
|
||||
|
||||
package assets
|
||||
|
||||
import (
|
||||
"io/fs"
|
||||
"os"
|
||||
)
|
||||
|
||||
func FS() fs.FS {
|
||||
return os.DirFS("assets/public") // <-- dev root matches embedded
|
||||
}
|
||||
|
||||
func FSDist() fs.FS {
|
||||
return os.DirFS("assets/public/dist") // <-- dev root matches embedded
|
||||
}
|
||||
Reference in New Issue
Block a user