Template Method

Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.

Examples in Go
No examples yet.
You can see if there are examples in other languages or
be the first to post an example in Go!