Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
Type string `json:"type"`
Text *Text `json:"text,omitempty"`
Fields []Text `json:"fields,omitempty"`
}
Block represents a block in a Slack message.
type Message ¶
Message represents a Slack Block Kit message.
func NewMessage ¶
NewMessage creates an empty Slack message with fallback notification text.
func (*Message) AddSection ¶
AddSection appends a Markdown section block.
func (*Message) RenderMarkdown ¶
RenderMarkdown renders the message blocks as Markdown.
Click to show internal directories.
Click to hide internal directories.