mirror of
https://gitee.com/johng/gf
synced 2026-07-07 06:15:15 +08:00
22 lines
252 B
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()
|
|
}
|