1. Functional Options Patternhistorical

    A Go functional-options example for constructing an object with default values while allowing selected fields to be changed flexibly.

  2. Function Types as Interfaceshistorical

    What an interface function is, why it is useful, and a Go implementation that allows either function values or structs to satisfy the same interface.