MiscLib

package module
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 2 Imported by: 166

README

MiscLib

license

Library with

  1. Colors for Red output
  2. InArray ( lookFor, Array ) returns -1 if not found, index otherwise.

MIT Licensed.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorBlack string

Black

View Source
var ColorBlue string

Blue

View Source
var ColorBlueOnWhite string
View Source
var ColorCyan string

Cyan

View Source
var ColorGreen string

Green

View Source
var ColorGreenOnWhite string
View Source
var ColorMagenta string

Magenta

View Source
var ColorMagentaOnWhite string
View Source
var ColorRed string

Red

View Source
var ColorReset string

Reset to default color

View Source
var ColorYellow string

Yellow

Functions

func InArray

func InArray(s string, arr []string) int

InArray returns the subscript if the string 's' is found in the array 'arr', else -1

func StdErrPiped

func StdErrPiped() bool

StdErrPiped returns true if os.Stderr apears to be send to a pipe

func StdInPiped

func StdInPiped() bool

StdErrPiped returns true if os.Stdin apears to be send to a pipe

func StdOutPiped

func StdOutPiped() bool

StdErrPiped returns true if os.Stdout apears to be send to a pipe

Types

This section is empty.

Jump to

Keyboard shortcuts

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