Sure, but what’ll really bake OP’s noodle is that Go’s GC is written in Go too. :) [0]
[0] https://go.dev/src/runtime/mgc.go