Files
gf/.example/os/gcmd/gcmd1.go

22 lines
252 B
Go

package main
import (
"fmt"
"github.com/gogf/gf/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()
}