From f587fa3ba383c62690320ebc4dfbd8b9d68a73ac Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Thu, 14 May 2020 11:30:17 -0700 Subject: Make convenience boxed true/false easier to use * changed PFalse to &false * changed PTrue to &true Signed-off-by: Jhon Honce --- pkg/bindings/bindings.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkg/bindings/bindings.go') diff --git a/pkg/bindings/bindings.go b/pkg/bindings/bindings.go index 4b07847d1..5e2882aae 100644 --- a/pkg/bindings/bindings.go +++ b/pkg/bindings/bindings.go @@ -11,8 +11,10 @@ package bindings var ( // PTrue is a convenience variable that can be used in bindings where // a pointer to a bool (optional parameter) is required. - PTrue bool = true + pTrue = true + PTrue = &pTrue // PFalse is a convenience variable that can be used in bindings where // a pointer to a bool (optional parameter) is required. - PFalse bool = false + pFalse = false + PFalse = &pFalse ) -- cgit v1.2.3-54-g00ecf