---
title: "Discussion on \"Pointers in Go - When to use the ampersand and the asterisk?\" | Hashnode"
description: "Discussion on \"Pointers in Go - When to use the ampersand and the asterisk?\". Looking back, this might be a dumb question, but that’s what blog notes are for 🤣\ntl;dr\n\n&: Used as an operator to get the address of a variable\n\n* in Type: Used to define the type as a pointer (e.g., *int)\n\n* in Expression: Used as an operator to d..."
url: "https://hashnode.com/posts/pointers-in-go-when-to-use-the-ampersand-and-the-asterisk/6901f30a78eca5d4058f6314"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Pointers in Go - When to use the ampersand and the asterisk?](https://blog.candys.page/pointers-in-go-when-to-use-the-ampersand-and-the-asterisk?utm_source=hashnode&utm_medium=feed)

Looking back, this might be a dumb question, but that’s what blog notes are for 🤣 tl;dr &: Used as an operator to get the address of a variable \* in Type: Used to define the type as a pointer (e.g., \*int) \* in Expression: Used as an operator to d...

Oct 29, 2025 · 2 min read · blog.candys.page  
Read the article

-   [#golang](https://hashnode.com/tag/golang)
-   [#pointers-in-go](https://hashnode.com/tag/pointers-in-go)
-   [#pointers](https://hashnode.com/tag/pointers)
-   [#go](https://hashnode.com/tag/go)

## Written by

[Candy](https://hashnode.com/@candyspage)

@candyspage

  
[View profile](https://hashnode.com/@candyspage)

Cute X Software engineer X Pooh enthusiast

Software engineer with care towards front end development and Pooh! Speaks English, Mandarin, Bahasa Indonesia and a tiny bit Deutsch.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
