this post was submitted on 21 Aug 2023
12 points (100.0% liked)

Golang

2214 readers
1 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 1 year ago
MODERATORS
 

While writing Go, you might might run into the following situation: You want to collect the results of a function in a slice. However, the function returns a pointer.

You might then ask yourself:

What kind of slice should I use? A slice of values or a slice of pointers?

Let’s make this a bit more concrete.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here