summaryrefslogtreecommitdiff
path: root/pkg/bindings/bindings.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-05-14 11:30:17 -0700
committerJhon Honce <jhonce@redhat.com>2020-05-14 13:35:59 -0700
commitf587fa3ba383c62690320ebc4dfbd8b9d68a73ac (patch)
treeeefcf33959150d2f79d6ec431679b4dbdf46658e /pkg/bindings/bindings.go
parent77dbfc753097d4b3a07c1382cb388e79515ffdb0 (diff)
downloadpodman-f587fa3ba383c62690320ebc4dfbd8b9d68a73ac.tar.gz
podman-f587fa3ba383c62690320ebc4dfbd8b9d68a73ac.tar.bz2
podman-f587fa3ba383c62690320ebc4dfbd8b9d68a73ac.zip
Make convenience boxed true/false easier to use
* changed PFalse to &false * changed PTrue to &true Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/bindings/bindings.go')
-rw-r--r--pkg/bindings/bindings.go6
1 files changed, 4 insertions, 2 deletions
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
)