sdk-for-go icon indicating copy to clipboard operation
sdk-for-go copied to clipboard

undeclared name : object in "users.go" & "database.go" in SDK

Open yuvan11 opened this issue 2 years ago • 2 comments

👟 Reproduction steps

I recently was trying to use this sdk for my project work, I came across the unmatched datatype object was throwing issues.

👍 Expected behavior

The expected type would be interface{} or map[string]interface{} would resolve this issue.

👎 Actual Behavior

As the Object is not supported by go, the go compiler is showing it as undeclared name.

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Windows

🧱 Your Environment

No

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

yuvan11 avatar Apr 17 '22 15:04 yuvan11

Hi @eldadfux, I could see the work is progress for this repo. I would like to work on this if this repo is still open for contribution?

yuvan11 avatar Apr 17 '22 15:04 yuvan11

There is one more too, the examples in docs/examples/users/create.md, having wrong syntax var client := appwrite.Client{}. It could be var client = appwrite.Client{} or client := appwrite.Client{} .

yuvan11 avatar Apr 17 '22 16:04 yuvan11