IO

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: BSL-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutput added in v0.5.7

func GetOutput(f func()) string

GetOutput captures the output of a function to os.Stdout Source: https://stackoverflow.com/a/10476304/5516320 (modified) Will return empty string in case of errors

func PrintResetErr added in v0.2.1

func PrintResetErr(err *error)

PrintResetErr calls PrintToErr if non-empty and resets it

func PrintToErr

func PrintToErr(str string)

PrintToErr prints to os.Stderr; the error handling is terminating, if printing fails, it panics

Types

This section is empty.

Jump to

Keyboard shortcuts

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