utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHome

func GetHome() string

GetHome returns the home directory.

func Recover

func Recover(ctx context.Context)

Recover is a utils that recovers from panics, logs the panic (and a backtrace) for functions in goroutine.

Types

type ContextKey

type ContextKey string

ContextKey is the type that used for saving and restoring value in context.

Jump to

Keyboard shortcuts

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