ParentFull threadpanic·You could use something like Go's 'defer' statement to ensure 'close' is called before the current function returns.View on HN