pulumi/tests/testdata/codegen/random-pet-pp/go/random-pet.go

19 lines
352 B
Go

package main
import (
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := random.NewRandomPet(ctx, "random-pet", &random.RandomPetArgs{
Prefix: pulumi.String("doggo"),
})
if err != nil {
return err
}
return nil
})
}