Description

MustBool guarantees the return of a `bool` (with optional default)

useful when you explicitly want a `bool` in a single value return context:

myFunc(js.Get("param1").MustBool(), js.Get("optional_param").MustBool(true))

MustBool is referenced in 14 repositories

github.com/bitly/go-simplejson github.com/miaolz123/samaritan github.com/wolfeidau/bugsnag-go

...