Skip to content

Commit

Permalink
feat: added to bool pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
alfarih31 committed Jan 17, 2022
1 parent a9c032a commit d2117ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bool.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ func (b Bool) ToInt() int {

return 0
}

func (b Bool) ToBoolPtr() *bool {
return toBoolPtr(bool(b))
}

0 comments on commit d2117ad

Please # to comment.