TGViewer
CatOps CatOps @catops · 5.07K subscribers
Post #1985 3.13K
A nice small article on when it makes sense to use pointers in Go.

As with the previous article, if you write in Go a lot that would probably provide you no new information. However, if you’re just learning it or switching from another language like Python, or writing Go code not that frequent; this article should be interesting.

And a quote:

In fact, I'll quote Ben Darnell, who is the lead engineer of CockroachDB (built in Go) :

"Whenever in doubt, use a value instead of a pointer"


#go #programming
Go long with Golang When Should You Use Pointers in Go The concept of pointers in programming languages is quite old. Golang also implements them.
  • 👍 10
More from @catops
  1. Oct 16, 2026Are you sure that it is a vacation, and not just location/activity change? Why I still see…
  2. Oct 16, 2026While I’m still enjoying my vacation, this CVE is too interesting to pass by. PwnEscape: G…
  3. Oct 8, 2026I’m going on a vacation, which means that I likely won’t post at all or post something ver…
  4. Oct 6, 2026A colleague of mine wrote an article about data migrations. Handling data migrations witho…
  5. Oct 1, 2026​​I traded my personal information for this report, so you don’t have to! DataDog presents…
  6. Sep 29, 2026A Cybersecurity books bundle by O’Reilly on Humble Bundle. The bundle is fresh and is stil…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →