README ¶ dingtalk 使用 创建钉钉群机器人 选择添加自定义机器人。 安全设置加签设置 使用说明 cfg := Config{ token: "dddd", secret: "xxx", } s := New(&cfg) s.Send(context.Background(), "subject", "content") Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Config type Service func New(cfg *Config) *Service func (s *Service) Send(ctx context.Context, subject, content string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Token string Secret string } type Service ¶ type Service struct { // contains filtered or unexported fields } func New ¶ func New(cfg *Config) *Service func (*Service) Send ¶ func (s *Service) Send(ctx context.Context, subject, content string) error Send takes a message subject and a message content and sends them to all previously set users. Source Files ¶ View all Source files dingding.go Click to show internal directories. Click to hide internal directories.