README ¶ pointers1 example A struct passed to function by value (copy) and by address (reference). GitHub Webpage PASS BY REFERENCE (MAKES POINTER IN FUNCTION) Passing the address of a struct to a function (by reference), b := person{"Jill", "female", 27} changeNamePtr(&b) So the function can now work on that original struct, func changeNamePtr(p *person) { p.name = "Lisa" } In this case the name is changed from Jill to Lisa. This diagram may help, RUN Run, go run pointers1.go Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files pointers1.go Click to show internal directories. Click to hide internal directories.