vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.26k stars 896 forks source link

api: OptionValueList helper #3473

Closed akutz closed 1 week ago

akutz commented 1 week ago

Description

This patch introduces the type OptionValueList in the object package. This new type simplifies working with []vimtypes.BaseOptionValue properties such as ExtraConfig.

Closes: NA

Type of change

Please mark options that are relevant:

How Has This Been Tested?

Checklist:

akutz commented 1 week ago

Thanks @dougm , I addressed everything. Please note the one length check was to avoid initializing the map unless required. I updated that. Thanks again!