When I make an iOS framework to link into my mobile app using this command:
gomobile bind -target=iOS
I get a framework that links and works as expected. However, the comments in the generated objective-C header are only included if I make sure all the public functions for the package are in the same file. If I put some public functions in a different file but the same golang package, the functions will be included in the generated header but not the associated comments.
Note that go doc, etc..., all work fine and show the public functions with their comments.
What did you expect to see?
It should not matter which file the public golang function is in or how many files in the package contain public functions. The comments for each function should always be included in the generated header if the function is public and has comments that go doc can see and associate with the function.
What did you see instead?
Some comments are missing if functions are in two or more files.
The text was updated successfully, but these errors were encountered: