go项目脚手架
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.
sorbet/main.go

23 lines
306 B

package main
import (
1 year ago
"log"
"sorbet/internal"
"sorbet/internal/runtime"
"sorbet/pkg/env"
)
func main() {
invoke(runtime.Reset)
invoke(env.Init)
invoke(internal.Init)
invoke(runtime.Init)
invoke(runtime.Run)
}
func invoke(fn func() error) {
if err := fn(); err != nil {
log.Fatalln(err)
}
}