mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
16 lines
294 B
Go
16 lines
294 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"github.com/gogf/gf/v2/os/gctx"
|
|
"github.com/gogf/gf/v2/os/gproc"
|
|
)
|
|
|
|
func main() {
|
|
ctx := gctx.GetInitCtx()
|
|
g.Log().Debug(ctx, `this is main process`)
|
|
if err := gproc.ShellRun(ctx, `go run sub/sub.go`); err != nil {
|
|
panic(err)
|
|
}
|
|
}
|