On Wed, Oct 07, 2015 at 03:25:41AM -0700,
cerovi...@gmail.com wrote:
> I have a struct that have field with type *string (because that correlates
> with nullable field in database)
https://golang.org/pkg/database/sql/#NullString
Strings in go are immutable, so a string value is kinda-sorta already like a pointer.
There are legitimate cases where a pointer to string makes sense (see e.g. the flag package),
but usually it's just people who don't know any better.
Newbies are, logically, most often people who don't know any better.