formatting

package
v0.0.1-101123-b3c1a68 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ParseMode = tgbotapi.ModeMarkdownV2

Variables

View Source
var ErrInvalidTimeFormat = errors.New("invalid time format")

Functions

func Escape added in v0.0.2

func Escape(s string) string

Escape makes arbitrary text valid when parsed with ParseMode.

func FormatCommandHelp added in v0.0.2

func FormatCommandHelp(cmd commands.Desc) string

func FormatCommandShortHelp added in v0.0.2

func FormatCommandShortHelp(cmd commands.Desc) string

func FormatHelp added in v0.0.2

func FormatHelp(text string, cmds []commands.Desc) string

FormatHelp formats full help message (with optional text block before commands). If present, text must be valid when parsed with ParseMode (see Escape).

func FormatMessages

func FormatMessages(header string, msgs []*standup.Message) string

FormatMessages formats a list of messages for the report. If present, header must be valid when parsed with ParseMode (see Escape).

func ParseTime

func ParseTime(s string, now time.Time) (time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL