github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/simple-yaml-schema/go/example/argFunction.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 ArgFunction(ctx *pulumi.Context, args *ArgFunctionArgs, opts ...pulumi.InvokeOption) (*ArgFunctionResult, error) {
    11  	var rv ArgFunctionResult
    12  	err := ctx.Invoke("example::argFunction", args, &rv, opts...)
    13  	if err != nil {
    14  		return nil, err
    15  	}
    16  	return &rv, nil
    17  }
    18  
    19  type ArgFunctionArgs struct {
    20  	Arg1 *Resource `pulumi:"arg1"`
    21  }
    22  
    23  type ArgFunctionResult struct {
    24  	Result *Resource `pulumi:"result"`
    25  }