kit

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B2S

func B2S(b []byte) string

B2S converts []byte to string with all leading and trailing white space removed, as defined by Unicode.

func FatalOn

func FatalOn(err error, str ...string)

FatalOn be careful with it in production, since it uses os.Exit(1) which affects the control flow. use pattern:

if err != nil {
	....
}

func FindExecutable

func FindExecutable(fileName string, dir string) (string, error)

FindExecutable starting from `dir` and then PATH env

Types

This section is empty.

Jump to

Keyboard shortcuts

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