Phuong Le

@func25
4 Followers
0 Following
2 Posts
Matt Boyle (@MattJamesBoyle) on X

(RTs hugely appreciated) One piece of feedback I receive often is folks want to dig deep into the Go language and most content is only surface level. Over a year ago, I reached out to @func25 as he just kept writing the most amazing deep Go blogs I had ever read (I'll link to

X (formerly Twitter)

How Go Arrays Work & Get Tricky with For-Range 😎

In his latest blog post, @func25 breaks down how @golang supports for-range with a pointer to an array, while it doesn’t support pointers to slices; and why!

Read the post here: https://victoriametrics.com/blog/go-array/

#golang #opensource #slice #array #developers

How Go Arrays Work and Get Tricky with For-Range

As always, we’ll start with the basics and then dig a bit deeper. Don’t worry, Go arrays get pretty interesting when you look at them from different angles. Arrays in Go are a lot like those in other programming languages. They’ve got a fixed size and store elements of the same type in contiguous memory locations.

VictoriaMetrics