Closed harnyk closed 2 years ago
This library won't be able to support this as it's reflection based, you could consider using tygo instead.
You make it sound like "reflection based" is something very bad @gzuidhof :) "Parser based" solves some problems but introduces others (for example - how about inner structs or structs in multiple packages).
Anyway... Adding a tag for specifying typescript comments is simple to implement @harnyk .
@harnyk Added a way to specify field comments, see https://github.com/tkrajina/typescriptify-golang-structs#field-comments
I would like if the following struct:
would convert to the following interface
Is it possible? Other option would be to have a special tag: