I'm currently working on a specialized encryption system where the keys are global... More importantly, I've been unable to locate any decent on-line docs describing exactly how Go GC works from a functional programming perspective..I found some docs describing various GC concepts and others that indicate how difficult a problem GC is, but nothing that tells me how Go's GC system works from a programmers perspective i.e. what happens when a function ends ? when main() ends ?
On Friday, May 3, 2019 at 8:50:00 PM UTC-4, Matt Harden wrote: > > On Fri, May 3, 2019, 17:28 <lgo...@gmail.com <javascript:>> wrote: > >> Does Go GC destroy all global vars prior to the end of main() ? >> > > What do you mean by "destroy"? Go is not an object oriented language and > doesn't have the concept of a destructor. So no, it doesn't, but it also > doesn't need to. > > May I ask, what led you to ask this question? > -- 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.