Visualize Go slices and arrays
Expore the connection between slices and arrays by generating diagrams from Go code.
1Play with the code in the editor below.
2Pass arrays and slices to the Visualize function.The signature of this function looks like
Visualize(vals ...any). The values must be slices or pointers to arrays.
3Click the visualize button to update the diagram.
🧠 Boost your Go skills
Get your hands dirty with project files, unit tests, excercises and more by subscribing to my newsletter. It's completely free.
I send emails every 1-2 weeks and I promise to keep your data safe. You can unsubscribe at any time.