---
title: "Discussion on \"Go Slice Copying: What Really Happens Under the Hood?\" | Hashnode"
description: "Discussion on \"Go Slice Copying: What Really Happens Under the Hood?\". In Go, variables are passed by value, which means that when we pass variables as arguments to functions, Go makes a copy of those values for the function to use. However, the behaviour of Slice can be a bit confusing at first glance, especially if we..."
url: "https://hashnode.com/posts/go-slice-copying-what-really-happens-under-the-hood/64f8caab7786b15c0285d5c5"
---

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

Discussion

# [Go Slice Copying: What Really Happens Under the Hood?](https://blog.rayspock.com/go-slice-copying-what-really-happens-under-the-hood?utm_source=hashnode&utm_medium=feed)

In Go, variables are passed by value, which means that when we pass variables as arguments to functions, Go makes a copy of those values for the function to use. However, the behaviour of Slice can be a bit confusing at first glance, especially if we...

Sep 6, 2023 · 4 min read · blog.rayspock.com  
Updated Dec 3, 2023  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#slice](https://hashnode.com/tag/slice)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Ray Yang](https://hashnode.com/@rayspock)

@rayspock · London, UK

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

BUIDL

BUIDL | Dev | Loving to code

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
