goworld: github.com/xiaonanln/goworld/engine/gwutils Index | Files

package gwutils

import "github.com/xiaonanln/goworld/engine/gwutils"


Package Files


func CatchPanic Uses

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

CatchPanic calls a function and returns the error if function paniced

func RepeatUntilPanicless Uses

func RepeatUntilPanicless(f func())

RepeatUntilPanicless runs the function repeatly until there is no panic

func RunPanicless Uses

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

RunPanicless calls a function panic-freely

Package gwutils imports 1 packages (graph) and is imported by 7 packages. Updated 2017-11-18. Refresh now. Tools for package owners.