Registry / utility / lithammer-dedent

lithammer-dedent

JSON →
library1.1.0gogounverified

Package dedent removes any common leading whitespace from multiline strings, similar to Python's textwrap.dedent.

go get github.com/lithammer/dedent
INSTALL
IMPORT
SIG · LITHAMMER-DEDENT
L
lithammer-dedent
utilitygov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dedent
github.com/lithammer/dedent

Remove common leading whitespace from a string

package main import ( "fmt" "github.com/lithammer/dedent" ) func main() { str := ` Hello World ` fmt.Println(dedent.Dedent(str)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
lithammer-dedent — go get lithammer-dedent · libregistry