如何在golang中读取受密码保护的xls文件

I have .xls file which is encrypted and I have the password for the same xls file I want to read that file using the password in golang and update in the database

Even how to do it using shell script also be helpfull

If reading the file is what you need, then I suggest you to save the copy of XLS file without the password. It can be exporting the XLS to CSV without password protection.