Documentation ¶
Overview ¶
Package dedent provides a utility for dedenting multiline strings.
This package is really useful for providing multiline string literals as inputs to cobra commands in Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lines ¶
Lines dedents a slice of strings and returns the result as a slice of strings with the common prefix whitespace removed. This will also trim any leading and trailing whitespace lines.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.