utils

package
v0.0.0-...-7bfe1ca Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollapseBlankLines

func CollapseBlankLines(s string) string

CollapseBlankLines keeps at most one blank line between paragraphs.

func IsTTY

func IsTTY(w any) bool

IsTTY reports whether w is a terminal.

func OneNewline

func OneNewline(s string) string

OneNewline ensures only one new line is outputted

func RenderMaybe

func RenderMaybe(text string, shouldUseMarkdown bool) (string, error)

RenderMaybe

Types

This section is empty.

Jump to

Keyboard shortcuts

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