Go ஆனது garbage collector மூலம் memory-ஐ தானாகவே நிர்வகிக்கிறது, manual allocation/freeing-இலிருந்து உங்களை விடுவிக்கிறது. அதன் GC ஆனது pause times-ஐ குறைக்க வடிவமைக்கப்பட்ட concurrent, low-latency, non-generational mark-and-sweep collector ஆகும் — latency-sensitive services-க்கு Go பொருந்துவதற்கான ஒரு முக்கிய காரணம் இதுவே.
Stack vs heap மற்றும் escape analysis
{
x :=
x
}
* {
x :=
&x
}
