...

/

Garbage Collection and SetFinalizer

Garbage Collection and SetFinalizer

This lesson briefly discusses how garbage collector and finalizer work in Go.

We'll cover the following...

Collecting garbage

The Go developer doesn’t have to code the release of memory for variables and structures, which are not used anymore in the program. A separate process in the Go runtime, the garbage collector, takes care of that. It starts now and then searches for variables which are not listed anymore, and frees that memory. Functionality ...

svg viewer