forked from x/icebergs
18 lines
428 B
Go
18 lines
428 B
Go
package yac
|
|
|
|
import (
|
|
"github.com/shylinux/icebergs"
|
|
)
|
|
|
|
var Index = &ice.Context{Name: "yac", Help: "语法模块",
|
|
Caches: map[string]*ice.Cache{},
|
|
Configs: map[string]*ice.Config{},
|
|
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) }
|