Replace vfsgen with go embed
parent
cc7f4678a8
commit
f28dbdaa1c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
files
|
@ -1,24 +0,0 @@
|
||||
// To generate the resources put the files on a "files" subdirectory and run "go run generate.go"
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/shurcooL/vfsgen"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var cwd, _ = os.Getwd()
|
||||
templates := http.Dir(filepath.Join(cwd, "files"))
|
||||
if err := vfsgen.Generate(templates, vfsgen.Options{
|
||||
Filename: "../romdumps_vfsdata.go",
|
||||
PackageName: "romdumps",
|
||||
VariableName: "Assets",
|
||||
}); err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue