Files
atomctl/templates/project/main.go.tpl
2024-12-19 19:21:06 +08:00

20 lines
288 B
Smarty
Executable File

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