Cookies management by TermsFeed Cookie Consent
Russia has invaded Ukraine and already killed tens of thousands of civilians, with many more raped or tortured. It's a genocide. We need your help. Let's fight back against the Russian regime.
Help Ukraine! Fight the Russian regime!

slice

Slices in Go by example. Learn how to use and how Go slices work

Please consider supporting us by disabling your ad blocker

💡 Empty slice vs nil slice in Go

Learn what is the difference between empty and nil slice and when to use them
introduction slice

🍕 Compare two slices in Go

Learn how to check if two slices are equal
introduction slice strings
1 ... 2