vslack-go:将消息发送到golang中的slack

时间:2021-02-17 00:22:16
【文件属性】:
文件名称:vslack-go:将消息发送到golang中的slack
文件大小:174KB
文件格式:ZIP
更新时间:2021-02-17 00:22:16
go slack golang Go VSlack-开始 版本1.4.0 使用Go中松弛的传入Web钩子将消息发送到松弛。 例子 同步 func synchronous() { s := vslack.NewVSlack(incomingWebHook) err := s.SetChannel("#random"). SetIconEmoji(":laughing:"). SetUsername("VSlack"). SetMessage("Test message"). Send() if err != nil { panic(err) } } 并发示例 func concurrent(c chan error) { s := vslack.NewVSlack(incomingWebHook) err := s.SetChannel("#random"). SetIconEmoji(":
【文件预览】:
vslack-go-master
----.gitignore(8B)
----README.md(2KB)
----mock_Interface.go(3KB)
----LICENSE(562B)
----go.mod(91B)
----vslack.go(3KB)
----vendor()
--------modules.txt(392B)
--------gopkg.in()
--------github.com()
----attachment.go(2KB)
----go.sum(1KB)
----send.go(794B)
----mock_AttachmentInterface.go(2KB)

网友评论