Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Consider different Go Mobile interface #460

Open
decentralgabe opened this issue Aug 31, 2023 · 0 comments
Open

Consider different Go Mobile interface #460

decentralgabe opened this issue Aug 31, 2023 · 0 comments
Assignees
Labels

Comments

@decentralgabe
Copy link
Member

          How about having the type of the parameter this function accepts be `CreateDIDKeyRequest`? According to the [documentation](https://pkg.go.dev/golang.org/x/mobile/cmd/gobind#hdr-Type_restrictions), structs are allowed.

It feels like it's a bit easier to deal with a typed object in Kotlin / Swift.

I was hoping that documentation gets automatically translated into the artifact that's created (the AAR or the Obj-C lib), but it unfortunately doesn't look like that's the case. That's unfortunate :(
To mitigate, I would say adding an example in the target language that demonstrates how to call this function would be great.

Originally posted by @andresuribe87 in #457 (comment)

@decentralgabe decentralgabe self-assigned this Aug 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant