// BoolWithDefault returns *v if v is not nil. Otherwise it returns d.
BoolWithDefault returns *v if v is not nil. Otherwise it returns d.
// BoolWithDefault returns * v if v is not nil . Otherwise it returns d .
func BoolWithDefault(v *bool, d bool) bool {
	if v == nil {
		return d
	}
	return *v
}
func BoolWithDefault ( v * bool , d bool ) bool { if v == nil { return d } return * v }
BoolWithDefault returns *v if v is not nil.
BoolWithDefault returns * v if v is not nil .