demo
This commit is contained in:
+5
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user