We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3423884 commit 35a8b6eCopy full SHA for 35a8b6e
core/message.go
@@ -47,6 +47,12 @@ func (msg *Message) String() string {
47
48
//GetProperty get message property by key string
49
func (msg *Message) GetProperty(key string) string {
50
+ if msg.Property != nil {
51
+ v, ok := msg.Property["key"]
52
+ if ok {
53
+ return v
54
+ }
55
56
ck := C.CString(key)
57
defer C.free(unsafe.Pointer(ck))
58
return C.GoString(C.GetOriginMessageProperty(msg.cmsg, ck))
0 commit comments