This commit is contained in:
hoteas
2017-08-23 02:33:51 +00:00
parent 22c46eebd9
commit c01dc6b5af
5 changed files with 121 additions and 108 deletions
+5 -3
View File
@@ -50,11 +50,13 @@ func main() {
"index": hotime.Ctr{
"test": func(this *hotime.Context) {
fmt.Println(this.Db.GetTag())
this.Db.Action(func() bool {
x:=this.Db.Action(func() bool {
return true
this.Db.Insert("user",hotime.Map{"unickname":"dasdas"})
return false
})
this.Display(5, "chenggong")
this.Display(5, x)
},
"websocket": func(this *hotime.Context) {
hdler := websocket.Handler(func(ws *websocket.Conn) {