Append appends the given FinalizeFunc at the end of this list. If the function is nil, it is ignored.
(finalizeFunc FinalizeFunc)
| 22 | // Append appends the given FinalizeFunc at the end of this list. If the |
| 23 | // function is nil, it is ignored. |
| 24 | func (f *FinalizeList) Append(finalizeFunc FinalizeFunc) { |
| 25 | if finalizeFunc != nil { |
| 26 | f.finalizeFuncs = append(f.finalizeFuncs, finalizeFunc) |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | // Finalize executes all the FinalizeFuncs in the given list in the same order |
| 31 | // they were pushed. |
no outgoing calls