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.
NewClient
Client
func NewObject(options ...Option) (*Object, error)
Last updated 4 years ago