Re: [go-nuts] Strip HTML comments before processing template

2025-01-01 Thread Mike Schinkel
If it stripped HTML comments then it would not be possible to generate output that contains wanted comments. Not all generated code is destined to be delivered to a renderer. Some might be targeting developers who need to modify it manually and for whom comments would be desired, i

Re: [go-nuts] List of source code files of a Go binary

2025-01-01 Thread Tharaneedharan Vilwanathan
Hi Def, Thanks for all the details. I will try these options. Regards Dharani On Wed, Jan 1, 2025 at 12:42 AM Def Ceb wrote: > There are two places where this information can come from: the pclntab, > and DWARF debug information. > > The pclntab has a mapping from program counter locations to

Re: [go-nuts] List of source code files of a Go binary

2025-01-01 Thread Def Ceb
There are two places where this information can come from: the pclntab, and DWARF debug information. The pclntab has a mapping from program counter locations to filenames and line numbers, which makes stack traces more useful. Files which don't contain any code, only things like type definition