Err: 405- Method not Allowed. Unable to Read Directories from a QloudData(Nextcloud) account using a written golang code

I wrote a Golang code to read the files/folders in my own regular account on Nextcloud(QloudData). It shows me the following error in the picture.


The code uses the “” API. The code snippet can be seen in the following image.

Urgent replies are required and would be appreciated.