From d2117ad89858f9a723f44a718324ec201cc710b8 Mon Sep 17 00:00:00 2001 From: Alfarih Faza Date: Mon, 17 Jan 2022 15:15:14 +0700 Subject: [PATCH] feat: added to bool pointer --- bool.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bool.go b/bool.go index 50a9ac3..f7de181 100644 --- a/bool.go +++ b/bool.go @@ -19,3 +19,7 @@ func (b Bool) ToInt() int { return 0 } + +func (b Bool) ToBoolPtr() *bool { + return toBoolPtr(bool(b)) +}