vmx.go
func (vmxfile *VMXFile) Read() error {
	data, err := ioutil.ReadFile(vmxfile.path)
	if err != nil {
		return err
	}

	model := new(vmx.VirtualMachine)

	err = vmx.Unmarshal(data, model)
	if err != nil {
		return err
	}

	vmxfile.model = model

	return nil
}
func (vmxfile *VMXFile) Read() error {
	data, err := ioutil.ReadFile(vmxfile.path)
	if err != nil {
		return err
	}

	model := new(vmx.VirtualMachine)

	err = vmx.Unmarshal(data, model)
	if err != nil {
		return err
	}

	vmxfile.model = model

	return nil
}
// Read reads VMX file from disk and unmarshals it