gwutils

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 1 Imported by: 206

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatchPanic

func CatchPanic(f func()) (err interface{})

CatchPanic calls a function and returns the error if function paniced

func NextLargerKey added in v0.1.3

func NextLargerKey(key string) string

NextLargerKey finds the next key that is larger than the specified key, but smaller than any other keys that is larger than the specified key

func RepeatUntilPanicless

func RepeatUntilPanicless(f func())

RepeatUntilPanicless runs the function repeatly until there is no panic

func RunPanicless

func RunPanicless(f func()) (panicless bool)

RunPanicless calls a function panic-freely

Types

This section is empty.

Jump to

Keyboard shortcuts

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