Safe
Safe function execution without panic

Installation
To install the package, run:
go get github.com/go-zoox/once
Getting Started
import (
"testing"
"github.com/go-zoox/once"
)
func main(t *testing.T) {
loadConfig := func() {
panic("load config panic")
}
if err := safe.Do(loadConfig); err != nil {
log.Error(err)
}
}
Inspired By
License
GoZoox is released under the MIT License.