MCPcopy Create free account
hub / github.com/MMadmer/EpicAssetsNotifyBot / asBoolDefault

Function asBoolDefault

internal/model/normalize.go:252–257  ·  view source on GitHub ↗
(value any, defaultValue bool)

Source from the content-addressed store, hash-verified

250}
251
252func asBoolDefault(value any, defaultValue bool) bool {
253 if v, ok := value.(bool); ok {
254 return v
255 }
256 return defaultValue
257}
258
259func asInt64(value any) (int64, bool) {
260 switch v := value.(type) {

Callers 2

NormalizeGuildConfigsMethod · 0.85
NormalizeUserProfilesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected