Pointer, Error
func NewObject(options ...Option) (*Object, error) {
instance := &Object{}
for _, option := range options {
if err := option(instance); err != nil {
return err
}
}
return instance, nil
}Last updated