utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abort

func Abort()

Abort prints 'Aborted.' to std out and exits process with 0

func Error

func Error(err error)

Error checks if err is not nil, prints 'Error: <message>' to std out

func ErrorAndExit

func ErrorAndExit(err error)

ErrorAndExit checks if err is not nil, prints 'Error: <message>' to std out and exits process with 0

func Fallback

func Fallback(val string, fallback string) string

Fallback returns fallback if val is nil

func Includes

func Includes(slice []string, s string) bool

Includes checks if string slice includes string

func Success

func Success(text string)

Success prints green colored text to std out

func Warn

func Warn(text string)

Warn prints yellow colored text to std out

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳