sys

package
v0.0.0-...-98b9d28 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitIf

func ExitIf(err error, except ...error)

ExitIf prints err and exits with an error code if err is not nil, and is not the same as one of the except values.

func HandleInterrupt

func HandleInterrupt(ctx context.Context, cb func())

HandleInterrupt runs the provided cb func after an os.Interrupt or os.Kill signal is received.

func IsPipedIn

func IsPipedIn() (bool, error)

IsPipedIn detects whether data is being piped-in from another command or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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