xjlm

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package xjlm is a package of general helpers for golang development. The functions/types in this package are subject to change often.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErrIgnore

func CheckErrIgnore(err error)

CheckErrPanic ignores the given error. It is equivalent to a noop.

func CheckErrLog

func CheckErrLog(err error)

CheckErrLog logs the error if the given error is non-nil

func CheckErrPanic

func CheckErrPanic(err error)

CheckErrPanic panics if the given error is non-nil

func CurrentDir

func CurrentDir() string

CurrentDir returns the current directory of the calling code

func JSON

func JSON(v interface{}) []byte

JSON wraps json unmarshal with panic on error

func RelativeDir

func RelativeDir(relativePath string) string

RelativeDir returns the fully qualified path of the given relative directory path

Types

This section is empty.

Jump to

Keyboard shortcuts

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