tstor/torrent/assets_generate.go
Antonio Navarro Perez ecd524ed3c First functional web interface version.
- Simplify by now all html and javascript.
- Added a simple interface using go templates and plain javascript.
- Improved REST interface for the use case.
- Changed some properties into the config file to make it suitable for
future use cases.

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2020-05-18 19:42:23 +02:00

30 lines
512 B
Go

// +build ignore
package main
import (
"log"
"github.com/ajnavarro/distribyted"
"github.com/shurcooL/vfsgen"
)
func main() {
err := vfsgen.Generate(distribyted.Assets, vfsgen.Options{
BuildTags: "release",
VariableName: "Assets",
PackageName: "distribyted",
})
if err != nil {
log.Fatalln(err)
}
err := vfsgen.Generate(distribyted.Assets, vfsgen.Options{
BuildTags: "release",
VariableName: "Templates",
PackageName: "distribyted",
})
if err != nil {
log.Fatalln(err)
}
}