1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 17:44:05 +08:00
icebergs/base/lex/lex.go
2020-10-08 07:57:42 +08:00

18 lines
378 B
Go

package lex
import (
ice "github.com/shylinux/icebergs"
)
const LEX = "lex"
var Index = &ice.Context{Name: LEX, Help: "词法模块",
Commands: map[string]*ice.Command{
"hi": {Name: "hi", Help: "hello", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
m.Echo("hello %s world", c.Name)
}},
},
}
func init() { ice.Index.Register(Index, nil) }