vmx.go
func (vmxfile *VMXFile) Write() error {
	file, err := os.Create(vmxfile.path)
	if err != nil {
		return err
	}
	defer file.Close()

	data, err := vmx.Marshal(vmxfile.model)
	if err != nil {
		return err
	}

	_, err = file.Write(data)
	if err != nil {
		return err
	}

	return nil
}
func (vmxfile *VMXFile) Write() error {
	file, err := os.Create(vmxfile.path)
	if err != nil {
		return err
	}
	defer file.Close()

	data, err := vmx.Marshal(vmxfile.model)
	if err != nil {
		return err
	}

	_, err = file.Write(data)
	if err != nil {
		return err
	}

	return nil
}
// Write marshals and writes VMX file to disk