cliutil

package
v0.0.0-...-bc49051 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(err error)

Fatal exits the program with a code 1 printing an error to stderr if it's set.

If the error is nil it does nothing.

func FileOrStdin

func FileOrStdin(path string) ([]byte, error)

FileOrStdin reads a file or from standard input if the file path is the literal string "-".

Types

This section is empty.

Jump to

Keyboard shortcuts

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