]> 127.0.0.1 Git - part/.git/commitdiff
简化写法 v0.3.15
authorqydysky <qydysky@foxmail.com>
Mon, 8 Feb 2021 05:18:47 +0000 (13:18 +0800)
committerqydysky <qydysky@foxmail.com>
Mon, 8 Feb 2021 05:18:47 +0000 (13:18 +0800)
msgq/Msgq.go

index f940eb6b9483820c145d5cde0a27807014c89567..d9736d576cbe9332775f7cc700b440bfe683a4dd 100644 (file)
@@ -21,6 +21,8 @@ type Msgq_item struct {
        sig uint64
 }
 
+type FuncMap map[string]func(interface{})(bool)
+
 func New(want_max_data_mun int) (*Msgq) {
        m := new(Msgq)
        (*m).wait_push = make(chan struct{},10)