format

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeBlock

func CodeBlock(msg string) string

CodeBlock trims whitespace and wraps a message in a code block.

func JoinMessages

func JoinMessages(msgs []string) string

JoinMessages joins strings in slice with new line characters. It also appends a trailing newline at the end of message.

func ShortMessage

func ShortMessage(event events.Event) string

ShortMessage prepares message in short event format.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳