In writing some complicated startup/shutdown code for some private
projects I quickly found a growing need to sanely keep track of the
destruction order of portions of a struct.

Reaper simulates the sane unwinding benefits of "defer", but in a way
that is not coupled to the scope of any particular function.

It's quite a trivial implementation, but perhaps someone else will find
it useful.

Source: https://github.com/naelyn/reaper
Documentation: http://godoc.org/github.com/naelyn/reaper

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 golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
postedJun 25, '13 at 5:49p
activeJun 25, '13 at 5:49p

1 user in discussion

Richard Boyer: 1 post



site design / logo © 2022 Grokbase