Documentation ¶ Index ¶ type Build type MarkdownRequest type Request type Response type WeChat func (c *WeChat) MarkdownMessage(md string, at ...string) error func (c *WeChat) Message(content string, at ...string) error func (c *WeChat) Send() error func (c *WeChat) Template(temp string) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Build ¶ type Build struct { Owner string Name string Tag string Event string Number int Commit string Ref string Branch string Author string Message string Status string Link string Started int64 Created int64 } type MarkdownRequest ¶ type MarkdownRequest struct { Msgtype string `json:"msgtype"` Markdown map[string]interface{} `json:"markdown"` } type Request ¶ type Request struct { Msgtype string `json:"msgtype"` Text map[string]interface{} `json:"text"` } type Response ¶ type Response struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` } type WeChat ¶ type WeChat struct { Build Build Url []string MsgType string ToUser string Content string } func (*WeChat) MarkdownMessage ¶ func (c *WeChat) MarkdownMessage(md string, at ...string) error func (*WeChat) Message ¶ func (c *WeChat) Message(content string, at ...string) error func (*WeChat) Send ¶ func (c *WeChat) Send() error func (*WeChat) Template ¶ func (c *WeChat) Template(temp string) ([]byte, error) Source Files ¶ View all Source files wechat.go Click to show internal directories. Click to hide internal directories.