If you want an anonymous defer function to have the same effect as a
separate function, ensure that they accept the same parameters. To continue
your example, this third version produces the same result as your first
version, but uses an anonymous defer function.
https://play.golang.org/p/oqQC_
There are many good ORMs for Go. One good list can be found
at https://awesome-go.com/#orm
I think ORMs definitely have their place, and I have made good use of
NHibernate in the .NET environment and Hibernate in Java. Having said that,
I have found that for almost all of the work I have done i
Apologies Joliee, but there is a type in that last post. The link should be
https://github.com/jjeffery/kv.
--
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 golan
>
> Thanks Chris, I would be very interested in your comments.
>
> I did think about submitting a PR to Go kit, but I noticed it had already
> been discussed in #325. I thought I'd just work it up as a separate package
> and then see if there is any interest (there has been a modest amount of
I have been following the progress of package github.com/pkg/errors, and
have put it to much use. Thanks very much to Dave Cheney and the other
authors.
A few months ago an interesting issue was raised along the lines of being
able to attach arbitrary data to the error
(https://github.com/pkg/