https://pulumi.com logo
Title
p

purple-jelly-68780

08/24/2021, 6:39 PM
Super noob question here... I'm writing my first Pulumi program in Go and am having some trouble getting an int (specifically
0
) to become an IntInput. I have tried:
pulumi.IntInput(0)
and
var zero int = 0
pulumi.IntInput(zero)
and
pulumi.IntInput(pulumi.Input(0))
with no success 😕 I think I'm missing something fundamental here so if anyone has a moment to help clear this up for me that would be great!
b

bored-table-20691

08/24/2021, 6:42 PM
How about just pulumi.Int(0)
p

purple-jelly-68780

08/24/2021, 6:43 PM
🤦‍♂️ that worked!! Thanks @bored-table-20691 😄
I was overcomplicating things I think lol
b

bored-table-20691

08/24/2021, 6:46 PM
Awesome 🙂