Documentation
¶
Index ¶
- func AdaptiveCodeBlock(msg string) 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 ¶
AdaptiveCodeBlock trims whitespace and wraps a message in a code block. If message is a single line, an inline code block is used.
func BulletPointListFromMessages ¶
BulletPointListFromMessages creates a bullet-point list from messages.
func JoinMessages ¶
JoinMessages joins strings in slice with new line characters. It also appends a trailing newline at the end of message.
func RemoveHyperlinks ¶
RemoveHyperlinks removes the hyperlink text from url
func ShortMessage ¶
ShortMessage prepares message in short event format.
func ShortNotificationHeader ¶
ShortNotificationHeader returns short header for event notification.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.