code: func (r *Registry) AppendReference(obj mo.Reference, field *[]types.ManagedObjectReference, ref ...types.ManagedObjectReference) {
  	r.WithLock(obj, func() {
  		*field = append(*field, ref...)
  	})
  }
docs: // AppendReference appends the given refs to field.