On 7 Feb 2017, at 03:57, Steven Roth <[email protected]> wrote:
> My question is whether putting the transaction in the context using
> context.WithValue is a reasonable and appropriate use of that mechanism. If
> not, why not?
In my opinion, this is morally equivalent to a
func Something(params map[interface{}]interface{})
which is a horrible API that no-one here would accept. If the function needs a
sql.Tx that should be one of the parameters. That the function also takes a
Context is beside the point.
//jb
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.