Anyone know the reason for needing `pulumi.String`...
# golang
c
Anyone know the reason for needing
pulumi.String
instead of just a Go string?
b
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
oh gotchya so its more of a placeholder
b
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