mirror of
https://github.com/beclab/Olares
synced 2026-04-21 13:37:46 +00:00
23 lines
391 B
Go
23 lines
391 B
Go
//go:build ignore
|
|
|
|
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
"path"
|
|
|
|
"github.com/shurcooL/vfsgen"
|
|
)
|
|
|
|
func main() {
|
|
fs := http.Dir(path.Join("pkg", "kubesphere", "plugins", "files"))
|
|
dst := path.Join("pkg", "kubesphere", "plugins", "assets_vfsdata.go")
|
|
err := vfsgen.Generate(fs, vfsgen.Options{
|
|
Filename: dst,
|
|
PackageName: "plugins",
|
|
})
|
|
if err != nil {
|
|
log.Fatalln(err)
|
|
}
|
|
}
|