dedent

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2019 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dedent

func Dedent(lines []string) (result []string)

Dedent removes the common whitespace prefix from the lines.

Both tabs and spaces are considered as "whitespace".

func TrimEmptyLines

func TrimEmptyLines(lines []string) (result []string)

TrimEmptyLines removes the prefix and suffix empty lines.

Types

This section is empty.

Jump to

Keyboard shortcuts

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