Merge pull request #1390 from zavre-c/patch-1

This commit is contained in:
Rico Sta. Cruz 2020-06-14 10:45:29 +10:00 committed by GitHub
commit 17ac9a671b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

6
go.md
View File

@ -136,6 +136,12 @@ func getPointer () (myPointer *int) {
```
{: data-line="3"}
```go
a := new(int)
*a = 234
```
{: data-line="2"}
Pointers point to a memory location of a variable. Go is fully garbage-collected.
See: [Pointers](https://tour.golang.org/moretypes/1)