Save the output of a go program into a file

Hi, I would like to write a code that can save the generated output Go program into a file. Any suggestion?

If you run it from console why just not redirect output to file?

Thanks. It works well

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.