utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const EXIT_CODE_INTERRUPT int = 130

Find more about exit codes here: https://tldp.org/LDP/abs/html/exitcodes.html

Variables

This section is empty.

Functions

func Exit

func Exit(errMsg string, exitCode int8)

func GetExitCode

func GetExitCode(err error) int

func LineCounter

func LineCounter(r io.Reader) (int, error)

Count number of newlines in reader

Credits: https://stackoverflow.com/a/24563853/6251097

func RemoveNonPrintables

func RemoveNonPrintables(s string) string

func StringMatches

func StringMatches(s string, match string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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