github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/simple-plain-schema/go/example/doFoo.go (about)

     1  // Code generated by test DO NOT EDIT.
     2  // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
     3  
     4  package example
     5  
     6  import (
     7  	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     8  )
     9  
    10  func DoFoo(ctx *pulumi.Context, args *DoFooArgs, opts ...pulumi.InvokeOption) error {
    11  	var rv struct{}
    12  	err := ctx.Invoke("example::doFoo", args, &rv, opts...)
    13  	return err
    14  }
    15  
    16  type DoFooArgs struct {
    17  	Foo Foo `pulumi:"foo"`
    18  }