Skip to content

MemorySpring/dingding-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dingding-go

钉钉通知GO语言SDK

方便使用GO语言进行钉钉机器人信息通知

支持如下消息类型

  • text类型
  • link类型
  • markdown类型
  • 独立跳转ActionCard类型

使用示例

var dingUrl = ""
var text = &TextMessage{
	MsgType: Text,
	At: MessageAt{
		AtMobiles: []string{},
		IsAtAll:   false,
	},
	Text: MessageContent{
		Content: "test",
	},
}

func TestSendMessage(t *testing.T) {
	err := SendMessage(text, dingUrl)
	if err != nil {
		t.Error(err)
	}
}

TODO 添加构造函数

About

钉钉通知GO语言SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages