Not sure if that’s what you are referring to as destructors, but they added a new way to have code run at resource collection in go 1.24
Not sure if that’s what you are referring to as destructors, but they added a new way to have code run at resource collection in go 1.24
Thanks for taking the time to explain it. Indeed the new runtime method does not guarantee when the resource will be cleaned, so something like that Drop trait would be quite useful