forked from x/ContextOS
opt some
This commit is contained in:
parent
0ec2f3fd3a
commit
17e1ce0f32
20
src/h2/h2.go
Normal file
20
src/h2/h2.go
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package h2
|
||||||
|
|
||||||
|
import (
|
||||||
|
"shylinux.com/x/ice"
|
||||||
|
)
|
||||||
|
|
||||||
|
type h2 struct {
|
||||||
|
ice.Zone
|
||||||
|
|
||||||
|
list string `name:"list zone id auto insert show" help:"示例"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s h2) Show(m *ice.Message, arg ...string) {
|
||||||
|
m.Echo("hello world")
|
||||||
|
}
|
||||||
|
func (s h2) List(m *ice.Message, arg ...string) {
|
||||||
|
s.Zone.List(m, arg...)
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { ice.Cmd("web.code.h2.h2", h2{}) }
|
3
src/h2/h2.shy
Normal file
3
src/h2/h2.shy
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
chapter "h2"
|
||||||
|
|
||||||
|
field web.code.h2.h2
|
@ -44,6 +44,8 @@ import (
|
|||||||
_ "shylinux.com/x/golang-story/src/prometheus"
|
_ "shylinux.com/x/golang-story/src/prometheus"
|
||||||
|
|
||||||
_ "shylinux.com/x/contexts/src/hi"
|
_ "shylinux.com/x/contexts/src/hi"
|
||||||
|
|
||||||
|
_ "shylinux.com/x/contexts/src/h2"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() { print(ice.Run()) }
|
func main() { print(ice.Run()) }
|
||||||
|
@ -64,3 +64,4 @@ field "架构图" web.code.git.spide args `intshell`
|
|||||||
|
|
||||||
spark md README.md
|
spark md README.md
|
||||||
source h2/h2.shy
|
source h2/h2.shy
|
||||||
|
source h2/h2.shy
|
||||||
|
@ -10,6 +10,8 @@ import (
|
|||||||
"shylinux.com/x/icebergs/base/web"
|
"shylinux.com/x/icebergs/base/web"
|
||||||
"shylinux.com/x/icebergs/misc/webview"
|
"shylinux.com/x/icebergs/misc/webview"
|
||||||
kit "shylinux.com/x/toolkits"
|
kit "shylinux.com/x/toolkits"
|
||||||
|
|
||||||
|
_ "shylinux.com/x/contexts/src/h2"
|
||||||
)
|
)
|
||||||
|
|
||||||
type view struct{ *webview.WebView }
|
type view struct{ *webview.WebView }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user