Back to

Package iofmt

Latest Go to latest
Published: Jun 24, 2020 | License: Apache-2.0 | Module:


Package iofmt contains various IO utilities used for formatting output.


Package Files

func PrefixWriter

func PrefixWriter(w io.Writer, prefix string) io.Writer

PrefixWriter returns a new io.Writer that copies its writes to the provided io.Writer, adding a prefix at the beginning of each line.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier