News for hackers. Stuff that matters.
Re:Understand Go pointers by my_ghola on Wednesday April 26, 2017 @10:59AM (#14203518)
If it was pointers in general I would have expected the article to talk about pointer arithmetic, which from other comments in the thread seem to be not possible in Go.

What is the use case for pointers then? are parameters passed by value instead of by reference by default?

Re:Understand Go pointers by pjmlp on Wednesday April 26, 2017 @11:02AM (#14203542)
Pointer arithmetic is possible in Go via the unsafe package.

Here is an example.

    buff := (*[25][80][2]byte)(unsafe.Pointer(uintptr(addr) + 25))