feat: embed static files into binary
This commit is contained in:
13
handlers/handler_test.go
Normal file
13
handlers/handler_test.go
Normal file
@ -0,0 +1,13 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"io/fs"
|
||||
"os"
|
||||
"path"
|
||||
)
|
||||
|
||||
type assets struct{}
|
||||
|
||||
func (assets) Open(p string) (fs.File, error) {
|
||||
return os.Open(path.Join("./", p))
|
||||
}
|
Reference in New Issue
Block a user