mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
1449b7c61e
commit
7d415f29d0
@ -1,5 +1,15 @@
|
||||
package %s
|
||||
package {{.Option "zone"}}
|
||||
|
||||
func init() {
|
||||
|
||||
import (
|
||||
"shylinux.com/x/ice"
|
||||
)
|
||||
|
||||
type {{.Option "name"}} struct {
|
||||
list string `name:"list path auto" help:"示例"`
|
||||
}
|
||||
|
||||
func (s {{.Option "name"}}) List(m *ice.Message, arg ...string) {
|
||||
m.Echo("hello world")
|
||||
}
|
||||
|
||||
func init() { ice.Cmd("{{.Option "key"}}", {{.Option "name"}}{}) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user