mirror of
https://github.com/hanzoui/registry-backend.git
synced 2026-10-30 20:30:45 +00:00
10 lines
202 B
Go
10 lines
202 B
Go
package mapper
|
|
|
|
// BoolPtrToBool function to convert a bool pointer to a bool, returns false if the pointer is nil
|
|
func BoolPtrToBool(ptr *bool) bool {
|
|
if ptr == nil {
|
|
return false
|
|
}
|
|
return *ptr
|
|
}
|