indent

package
v0.0.0-...-0beeec3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package indent indents lines of text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(indent, b []byte) []byte

Bytes returns b with each line in b prefixed by indent.

func NewWriter

func NewWriter(w io.Writer, indent string) io.Writer

NewWriter returns an io.Writer that prefixes the lines written to it with indent and then writes them to w. The writer returns the number of bytes written to the underlying Writer.

func String

func String(indent, s string) string

String returns s with each line in s prefixed by indent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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