Lazy Initialization

Tactic of delaying the creation of an object, the calculation of a value, or some other expensive process until the first time it is needed. This pattern appears in the GoF catalog as "virtual proxy", an implementation strategy for the Proxy pattern.

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!