Re: [go-nuts] How to include unused functions into binary

2017-06-21 Thread Jan Mercl
On Wed, Jun 21, 2017 at 2:44 PM wrote: > I read somewhere that Go will remove unused functions so that it wont be included into binaries when it can prove no code is using it. Correct. > However I am using reflection to call functions that are inside the binaries

[go-nuts] How to include unused functions into binary

2017-06-21 Thread sorainnosia
I read somewhere that Go will remove unused functions so that it wont be included into binaries when it can prove no code is using it. However I am using reflection to call functions that are inside the binaries without first having any variable using it. Is there compiler option to include