dops

package
v0.0.0-...-5f7c8af Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EXIT_ON_IFERR = false

IF_ERR_BEHAVIOR_EXIT is a flag for Iferr. If this is set to true, Iferr will terminate when found error.

View Source
var SHOW_ERR_LINE = false

Functions

func CallerFunc

func CallerFunc(skip int) (fnName, fnFilePath string, fnFileLine int)

func ExistAll

func ExistAll(v ...interface{}) bool

ExistAll checks if none of input arguments are default value. Limitation on Exist will be slices and struct. For slices, it only supports int, int64, string, and bool.

func ExistAny

func ExistAny(v ...interface{}) bool

func Iferr

func Iferr(err error, fn ...func(error)) bool

Iferr returns true when found an error. Otherwise, this will return false -- no error.

func NewCounter

func NewCounter() *counterStr

Types

This section is empty.

Jump to

Keyboard shortcuts

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