yanjunhui/chat

r := regexp.MustCompile(`(\[(.*?)\])`)

Closed this issue · 6 comments

r := regexp.MustCompile((\[(.*?)\]))

实际使用中是遇到问题了嘛

r := regexp.MustCompile(([(.?)***]))

字符 ] 前少了 \

您好,请问一下,后续的版本更新中,能否添加使用多个agentID功能吗?也就是是跟不同应用发通知,因为太多系统了,都在一个应用接收,阅读好难。

Reports character escapes that are replaceable with the unescaped character without a change in meaning. Note that inside the square brackets of a character class, many escapes are unnecessary that would be necessary outside of a character class. For example the regex [.] is identical to [.]
其实是没必要加的

目前版本 发送方法已经独立出来了 自己可以直接new一个的:
client = crop.New(corpID, agentID, secret)
注意下 这里的agentID需要是int, 因为从config配置文件读取的是文本, 所以在我的示例代码里面使用了StringToInt()方法转换了下

好的,谢谢。

@yanjunhui 您好,另外请教下,如果要按 totag toparty 发送告警信息,需要怎么操作呢?试改了下,没成功。谢谢。