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.
editor
Options
output
🎓
Keep Learning. Subscribe to my Newsletter.
Gain access to more content and get notified of the latest articles:
- A Brief Guide To Time for Developers
- Source code
- Unit tests
I send emails every 1-2 weeks and will keep your data safe. You can unsubscribe at any time.