Closed shuqingzai closed 1 year ago
It would be possible, but you can easily create this method yourself, as it's only three lines of code. Why is there a need for this to be automatically generated?
Life cycle management, if you implement the constructor manually, delete the interface later, and regenerate the conversion code, you also need to manually delete the constructor, which is easily forgotten
I don't understand, if you delete the interface, then there is a compile error on the constructor function. What do you mean with "delete the interface later", the converter interface? If so, then regenerating the conversion code isn't possible because the interface is required for that.
Have you read the project readme?
Describe your question A clear and concise description of what the question is. Include errors and go source files.
It is a good choice for dependency injection or initialization declaration