Hi Folks. I've just started using the Pulumi Go SD...
# general
a
Hi Folks. I've just started using the Pulumi Go SDK. In some of the example code it uses type
pulumi.String
instead of just a regular Go
String
. What's the advantage of using the String from the
pulumi
package?
b
@alert-laptop-13489 any
pulumi.String
indicates it's an output or input, meaning it resolves asynchronously. it's built that way due to a lack of generics in Go
there's no advantage of disadvantage, you generally have to use pulumi.String if you're dealing with a resource
a
Cool, thanks for the explainer 👍