https://pulumi.com logo
#general
Title
# general
a

alert-laptop-13489

12/20/2021, 1:50 PM
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

billowy-army-68599

12/20/2021, 2:47 PM
@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

alert-laptop-13489

12/20/2021, 4:19 PM
Cool, thanks for the explainer 👍