3 ms·
Show HN: Go Array and Slice Visualizer
Hi! This is a small web app I made to explore the relationship between arrays and slices in Go. Probably mostly useful for beginners to Go :)
It gets a bit rough around the edges when you provide a custom capacity using index expressions but should work in most other cases.
I'm looking into adding some transitions/animations, I think it would be a good way to visualize loops for example, but I haven't gotten around to it yet.
Let me know what you think!
- andrewfromx 3y agovery cool. I tend to use slices everywhere and rarely use arrays. What am I missing out on?
- 1268 3y agoThanks! Same here, it's rare to use arrays directly in my experience. Just difficult to explain (or visualize) slices without also discussing arrays.