Hi everyone! I have started using GO in Pulumi, co...
# golang
e
Hi everyone! I have started using GO in Pulumi, coming over from TS. It has been awesome so far! One thing I have been unable to figure out is how to use a more recent MS API when needed. For example in TS, I would do it like this
import app from "@pulumi/azure-native/app/v20240301
. Logic would think
"<http://github.com/pulumi/pulumi-azure-native-sdk/app/v20240301|github.com/pulumi/pulumi-azure-native-sdk/app/v20240301>"
, but that does not work. How can I do that with with GO? Thanks in advance!
c
Although I see a go.mod, I’m not seeing a go directory in the root of the sdk directory for this one. https://github.com/pulumi/pulumi-azure-native/tree/master/sdk
e
I figured out how to do this with this. There... I learned the syntax is slightly different than what I was originally thinking. i.e.
app20240301 "<http://github.com/pulumi/pulumi-azure-native-sdk/app/v2/v20240301|github.com/pulumi/pulumi-azure-native-sdk/app/v2/v20240301>
. Thanks!
c
Awesome!