Add boolean values to Go SDK (#5647) (#5687)

* Add boolean values to Go SDK (#5647)

* Update changelog
This commit is contained in:
RyanW02 2020-11-05 21:33:58 +00:00 committed by GitHub
parent 8d38ebb407
commit 90fbe4bc8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -17,6 +17,9 @@ _(none)_
- [cli] Ensure that the CLI doesn't panic when trying to assemble a graph on a stack that has no snapshot available
[#5678](https://github.com/pulumi/pulumi/pull/5678)
- Add boolean values to Go SDK
[#5687](https://github.com/pulumi/pulumi/pull/5687)
## 2.12.1 (2020-10-23)

View file

@ -2590,6 +2590,11 @@ type BoolInput interface {
// Bool is an input type for bool values.
type Bool bool
var (
True = BoolPtr(true)
False = BoolPtr(false)
)
// ElementType returns the element type of this Input (bool).
func (Bool) ElementType() reflect.Type {
return boolType