utils

package module
v0.0.0-...-e6bfff0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

README

utils

utils package implements a set of general purpose functions ex: wrapping errors etc.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallerFunctionName

func CallerFunctionName() string

CallerFunctionName returns the caller of the function calling CallerFunctionName (inception!)

func WrapError

func WrapError(err error) error

WrapError wraps error with their callers name

func WrapErrorP

func WrapErrorP(err *error)

WrapErrorP wraps a pointer to an error, only to be used in functions with named return values

Types

This section is empty.

Jump to

Keyboard shortcuts

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