Documentation
¶
Index ¶
- func AdaptiveCodeBlock(msg string) string
- func BulletPointEventAttachments(event event.Event) string
- func BulletPointListFromMessages(msgs []string) string
- func CodeBlock(msg string) string
- func JoinMessages(msgs []string) string
- func RemoveHyperlinks(in string) string
- func ShortMessage(event event.Event) string
- func ShortNotificationHeader(event event.Event) string
- func StructDumper() litter.Options
- func ToTitle(in fmt.Stringer) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptiveCodeBlock ¶ added in v0.14.0
AdaptiveCodeBlock trims whitespace and wraps a message in a code block. If message is a single line, an inline code block is used.
func BulletPointEventAttachments ¶ added in v0.15.0
BulletPointEventAttachments returns formatted lists of event messages, recommendations and warnings.
func BulletPointListFromMessages ¶ added in v0.15.0
BulletPointListFromMessages creates a Markdown bullet-point list from messages. See https://api.slack.com/reference/surfaces/formatting#block-formatting
func JoinMessages ¶
JoinMessages joins strings in slice with new line characters. It also appends a trailing newline at the end of message.
func RemoveHyperlinks ¶ added in v0.16.0
RemoveHyperlinks removes the hyperlink text from url
func ShortMessage ¶
ShortMessage prepares message in short event format.
func ShortNotificationHeader ¶ added in v0.15.0
ShortNotificationHeader returns short header for event notification.
func StructDumper ¶ added in v0.16.0
StructDumper default dumper for structs
Types ¶
This section is empty.