2021-01-08 22:22:43 +03:00
|
|
|
// +build dev
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
|
|
|
|
"github.com/shurcooL/vfsgen"
|
2021-02-02 14:07:31 +03:00
|
|
|
"github.com/unistack-org/protoc-gen-micro/v3/assets"
|
2021-01-08 22:22:43 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
err := vfsgen.Generate(assets.Assets, vfsgen.Options{
|
|
|
|
PackageName: "assets",
|
|
|
|
BuildTags: "!dev",
|
|
|
|
VariableName: "Assets",
|
|
|
|
Filename: "assets/vfsdata.go",
|
|
|
|
})
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|