diff --git a/go.md b/go.md index 74c7a969b..c88b50851 100644 --- a/go.md +++ b/go.md @@ -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)