You can make some tests to check the final binary sizes, which will not spend you much time. :)
The official linker does try to remove many unused functions. Unused functions really need more time to compile. On Saturday, October 6, 2018 at 10:08:43 AM UTC-4, Vasiliy Tolstov wrote: > > Hi! > I have some data that can be formatted with json, text and binary form. > Does i need to split this on three parts (json, text, binary) to avoid > compile time and run time overhead (and disk size of resulted binary) > if user want to use only one format (for example binary). Or go > compiler remove unused functions and not include them in resulted > binary? (if i don't use json Marshal/Unmarshal full json package not > included in my binary) > Thanks! > > -- > Vasiliy Tolstov, > e-mail: v.to...@selfip.ru <javascript:> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.