如何使用Unioffice库和golang更新Ppt模板

I want to update a PowerPoint template using Go and Unioffice library.

For Example:

  1. I have key and value in ppt as

    firstname:${firstname} 
    lastname:${lastname}
    
  2. I have an XML file which contains below data:

    <firstname> Arjun </firstname>
    <lastname>  Rathore</lastname>
    
  3. I want to dynamically update the ppt firstname with Arjun and lastname with Rathore.

I tried to do it using Go and Unioffice library, but I am not able to update the ppt with XML file data.

Please find the attached code screen shot: enter image description here