mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
438 B
25 lines
438 B
2 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
|
||
|
. "github.com/alimy/mir/v3/core"
|
||
|
. "github.com/alimy/mir/v3/engine"
|
||
|
|
||
|
_ "github.com/rocboss/paopao-ce/internal/mirc/routes/v1"
|
||
|
)
|
||
|
|
||
|
//go:generate go run main.go
|
||
|
func main() {
|
||
|
log.Println("generate code start")
|
||
|
opts := Options{
|
||
|
RunMode(InSerialMode),
|
||
|
GeneratorName(GeneratorGin),
|
||
|
SinkPath("auto"),
|
||
|
}
|
||
|
if err := Generate(opts); err != nil {
|
||
|
log.Fatal(err)
|
||
|
}
|
||
|
log.Println("generate code finish")
|
||
|
}
|