feat: init repo

This commit is contained in:
Rogee
2024-12-18 19:42:10 +08:00
parent c3f965035c
commit b68316a778
46 changed files with 1770 additions and 0 deletions

23
templates/project/main.go.tpl Executable file
View File

@@ -0,0 +1,23 @@
package main
import (
"{{.ModuleName}}/pkg/service/http"
"{{.ModuleName}}/pkg/service/migrate"
"{{.ModuleName}}/pkg/service/model"
"git.ipao.vip/rogeecn/atom"
log "github.com/sirupsen/logrus"
)
func main() {
opts := []atom.Option{
atom.Name("{{ .ProjectName }}"),
http.Command(),
migrate.Command(),
model.Command(),
}
if err := atom.Serve(opts...); err != nil {
log.Fatal(err)
}
}