Variadic Options

An object constructor standardizes the creation of objects exported by the package. We saw this in Functional Configuration where the NewClient function standardized Client creation.

func NewObject(options ...Option) (*Object, error)

Last updated