// converts a normal (func to close, error) to only an error
converts a normal (func to close, error) to only an error
// converts a normal ( func to close error ) to only an error
func addToCloser(toClose *[]func()) func(f func(), err error) error {
	return func(f func(), err error) error {
		if f != nil {
			*toClose = append(*toClose, f)
		}
		return err
	}
}
func addToCloser ( toClose * [ ] func ( ) ) func ( f func ( ) , err error ) error { return func ( f func ( ) , err error ) error { if f != nil { * toClose = append ( * toClose , f ) } return err } }
converts a normal (func to close, error) to only an error
converts a normal ( func to close error ) to only an error