Byte Ebi's Logo

Byte Ebi 🍀

A Bit everyday A Byte every week

Different between pointer and value for struct type in golang

The different between pointer and value for struct type in golang with examples

Ray

I always had a question “Should I use value for type in struct? Or using pointer?”
After reading many different projects on the web, it seems that they all have different practices.
Until I recently encountered a problem that gave me some ideas.

Recent Posts

Categories

Tags