go value and reference types code example
Example: go value and reference types
// Values types: you should care about pointers
// Refenerce types: you don't care about pointers
value types: int, float, string, bool, struct
reference types: slice, map, channel, pointer, function