https://pulumi.com logo
#golang
Title
# golang
c

curved-morning-41391

02/03/2022, 11:04 PM
Anyone know the reason for needing
pulumi.String
instead of just a Go string?
b

bored-table-20691

02/03/2022, 11:05 PM
It’s a type that is compatible with all the places that require what is fundamentally a future value (i.e.
pulumi.StringInput
).
🧐 1
c

curved-morning-41391

02/03/2022, 11:13 PM
oh gotchya so its more of a placeholder
b

bored-table-20691

02/03/2022, 11:14 PM
In a way, yes. I think others will chime in with a more complete explanation, but most Pulumi resources will allow you to take in a future value for parameters, and so you need a way to wrap an explicit value (i.e. a
string
) into something that adheres to that interface.
👍 1
6 Views