utils

package
v0.0.0-...-b9f2469 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddErrorIfExists

func AddErrorIfExists(formatStr string, err error) string

Add error to format string

func FailOnError

func FailOnError(errorStr string, err error)

If error log and panic

func FileExists

func FileExists(path string) (bool, error)

func HashMode

func HashMode(mode string) uint32

generate a hash of the mode used as an Id and used to find previously same mode

func LogOnError

func LogOnError(err error)

log the error and don't fail

Types

This section is empty.

Jump to

Keyboard shortcuts

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