doc

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String(s string) string

String enhances heredoc.Doc() with word unwrapping capabilities. This is great for correctly wrapping text when not knowing the wrap width upfront.

func Wrap

func Wrap(s string, wrap int) string

Wrap is like Doc() but word wraps at the given width but at max 80 characters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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