gwutils

package
v0.0.0-...-1c1c5e2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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

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