-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raw function to insert raw string into the output #50
Comments
There's no specific function for inserting a raw string into the output, but |
It is very useful when creating generated code. Why it doesn‘t have such api?Use |
This isn't something I want to encourage this because if you slip a qualified identifier in by mistake it won't be added to the imports block. |
@dave use |
To add a qualified identifier, you should be using
I don't see any reason not to use the I think it's quite uncommon to be inserting such a large block of code into a generated file. Usually it's best to structure the project so the generated files are pretty dense with dynamic code, and the code that doesn't change is in a separate file. |
I think |
I understand that a |
Have you encounter a situation that the struct is dynamically generated from json. I use other tool generating the struct code. In this case, the raw function will useful Sent with GitHawk |
Is it possible to toinsert a pile of code like
such code is static and will not change.
The text was updated successfully, but these errors were encountered: