(otherInfo map[string]interface{})
| 206 | } |
| 207 | |
| 208 | func (channel *Channel) SetOtherInfo(otherInfo map[string]interface{}) { |
| 209 | otherInfoBytes, err := json.Marshal(otherInfo) |
| 210 | if err != nil { |
| 211 | common.SysError("failed to marshal other info: " + err.Error()) |
| 212 | return |
| 213 | } |
| 214 | channel.OtherInfo = string(otherInfoBytes) |
| 215 | } |
| 216 | |
| 217 | func (channel *Channel) GetTag() string { |
| 218 | if channel.Tag == nil { |
no test coverage detected