feat: embed static files into binary

This commit is contained in:
rramiachraf
2024-05-03 14:47:57 +01:00
parent 2c0f43b8f7
commit 6d6856700b
13 changed files with 74 additions and 39 deletions

13
handlers/handler_test.go Normal file
View 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))
}