Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sdk/go] Support for calling methods #7437

Merged
merged 3 commits into from
Jul 8, 2021
Merged

Conversation

justinvp
Copy link
Member

@justinvp justinvp commented Jul 6, 2021

Support for calling methods from Go.

Part of #7072

@justinvp justinvp requested review from pgavlin and t0yv0 July 6, 2021 22:16
func (ctx *Context) getOpts(t string, providers map[string]ProviderResource, opts *resourceOptions, remote bool,
) (URN, []URN, bool, string, map[string]string, bool, ID, []string, []string, string, error) {
func (ctx *Context) getOpts(t string, provider ProviderResource, opts *resourceOptions, remote bool,
) (URN, []URN, bool, string, map[string]string, bool, ID, []string, []string, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10-tuples remind me of Haskell pain from previous job, sitting there counting out positions to the 7th argument during a 3am debugging session. Could we use a record to name the fields? I can undertake a separate PR 😅

@t0yv0
Copy link
Member

t0yv0 commented Jul 7, 2021

Looks good to me, neat, consistent with the other things I've seen. Comments mostly nit-ty and an opportunity to educate me.

Now, this only modifies the Go SDK client to the Engine to issue Calls, assume the impl of Calls is in separate PR?

@t0yv0 t0yv0 self-requested a review July 7, 2021 13:53
@emiliza emiliza added this to the 0.59 milestone Jul 7, 2021
@justinvp justinvp merged commit eaf78ed into master Jul 8, 2021
@pulumi-bot pulumi-bot deleted the justin/methods_calling_go branch July 8, 2021 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants