util

package
v0.0.0-...-e607504 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Courtesy of https://groups.google.com/forum/#!topic/golang-nuts/99MKtEkvQ2c
	Reset      = "\x1b[0m"
	Bright     = "\x1b[1m"
	Dim        = "\x1b[2m"
	Underscore = "\x1b[4m"
	Blink      = "\x1b[5m"
	Reverse    = "\x1b[7m"
	Hidden     = "\x1b[8m"

	FgBlack   = "\x1b[30m"
	FgRed     = "\x1b[31m"
	FgGreen   = "\x1b[32m"
	FgYellow  = "\x1b[33m"
	FgBlue    = "\x1b[34m"
	FgMagenta = "\x1b[35m"
	FgCyan    = "\x1b[36m"
	FgWhite   = "\x1b[37m"
)

Variables

This section is empty.

Functions

func DirExists

func DirExists(path string) (bool, error)

func Fatal

func Fatal(a ...interface{})

Formats and prints an error message then exits

func Fatalf

func Fatalf(message string, a ...interface{})

Formats and prints an error message then exits

func IpSliceContains

func IpSliceContains(ips []net.IP, ip net.IP) bool

func Success

func Success(a ...interface{})

Prints a success message

func Successf

func Successf(message string, a ...interface{})

Formats and prints a success message

Types

This section is empty.

Jump to

Keyboard shortcuts

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