diff --git a/go.md b/go.md index 74c7a969b..600b36f40 100644 --- a/go.md +++ b/go.md @@ -135,6 +135,11 @@ func getPointer () (myPointer *int) { } ``` {: data-line="3"} +```go +a := new(int) +*a = 234 +``` +{: data-line="4"} Pointers point to a memory location of a variable. Go is fully garbage-collected.