mirror of
https://gitee.com/johng/gf
synced 2026-07-04 21:03:13 +08:00
21 lines
274 B
Go
21 lines
274 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"gitee.com/johng/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()
|
|
}
|