Files
gf/geg/os/gcmd/gcmd1.go
2019-04-03 00:03:46 +08:00

21 lines
253 B
Go

package main
import (
"fmt"
"github.com/gogf/gf/g/os/gcmd"
)
func help() {
fmt.Println("This is help.")
}
func test() {
fmt.Println("This is test.")
}
func main() {
gcmd.BindHandle("help", help)
gcmd.BindHandle("test", test)
gcmd.AutoRun()
}