Use official VMWARE library instead https://github.com/vmware/govmomi
Fully documented and friendly VMWare vSphere API for Go.
5.5 and previous versions
Before attempting to use this API please take some time to familiarize yourself with VMware VI object model
go install
$ govsphere generate
The generation process is going to create a file called api.json, relative to the path from where the command is executed.
$ govsphere scrape
Example output: