formatx

package
v1.2.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptiveCodeBlock

func AdaptiveCodeBlock(msg string) string

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

func BulletPointListFromMessages(msgs []string) string

BulletPointListFromMessages creates a bullet-point list from messages.

func CodeBlock

func CodeBlock(msg string) string

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

func RemoveHyperlinks(in string) string

RemoveHyperlinks removes the hyperlink text from url

func StructDumper

func StructDumper() litter.Options

StructDumper default dumper for structs

func ToTitle

func ToTitle(in fmt.Stringer) string

ToTitle returns English specific title casing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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