-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
If a call has very few arguments / return values, it would be neat to inline them, so that a separate struct is not needed. Example:
call test {
arg: {
id string
}
}
would now produce the func
Test(ctx context.Context, arg *TestArg) (err error)which must be called like this
err := client.Test(ctx, &api.TestArg{Id: id})but if one could inline the arguments:
Test(ctx context.Context, id string) (err error)the call looks much neater imho
err := client.Test(ctx, id)Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request