Go by Example: Pointers
Go by Example : Pointers
Go supports pointers , allowing you to pass references to values and records within your program. | |
![]() | |
| |
We’ll show how pointers work in contrast to values with
2 functions:
| |
| |
| |
| |
The
| |
Pointers can be printed too. | |
| |
Next example: Strings and Runes .
