Update go.md
This commit is contained in:
parent
a6fb6f3a26
commit
517343fcd9
3
go.md
3
go.md
|
@ -135,11 +135,12 @@ func getPointer () (myPointer *int) {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
{: data-line="3"}
|
{: data-line="3"}
|
||||||
|
|
||||||
```go
|
```go
|
||||||
a := new(int)
|
a := new(int)
|
||||||
*a = 234
|
*a = 234
|
||||||
```
|
```
|
||||||
{: data-line="4"}
|
{: data-line="2"}
|
||||||
|
|
||||||
Pointers point to a memory location of a variable. Go is fully garbage-collected.
|
Pointers point to a memory location of a variable. Go is fully garbage-collected.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue