(msg interface{})
| 253 | } |
| 254 | |
| 255 | func MessageToID(msg interface{}) int { |
| 256 | |
| 257 | if msg == nil { |
| 258 | return 0 |
| 259 | } |
| 260 | |
| 261 | meta := MessageMetaByMsg(msg) |
| 262 | if meta == nil { |
| 263 | return 0 |
| 264 | } |
| 265 | |
| 266 | return int(meta.ID) |
| 267 | } |
| 268 | |
| 269 | func MessageSize(msg interface{}) int { |
| 270 |
no test coverage detected