pad

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package pad writes padding to memory buffers.

Although the functions take an io.Writer, the writers must be memory buffers and never return an error.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WritePadding

func WritePadding(w io.Writer, count int, fill string)

WritePadding writes count bytes from the fill, repeating fill as necessary.

func WriteSpaces

func WriteSpaces(w io.Writer, count int)

WriteSpaces writes count spaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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