mirror of https://github.com/OrbTools/OrbMap
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
376 B
Go
20 lines
376 B
Go
package main
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
out, _ := os.Create("boot.go")
|
|
out.Write([]byte("package main\n\nimport (\n"))
|
|
files, _ := ioutil.ReadDir("./backend/")
|
|
BasePkg := "github.com/OrbTools/OrbMap/backend/"
|
|
for _, fil := range files {
|
|
if fil.IsDir() {
|
|
out.Write([]byte("\t_ \"" + BasePkg + fil.Name() + "\"\n"))
|
|
}
|
|
}
|
|
out.Write([]byte(")"))
|
|
}
|