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)
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:
would now produce the func
which must be called like this
but if one could inline the arguments:
the call looks much neater imho