---
title: "Discussion on \"Slices in GO\" | Hashnode"
description: "Discussion on \"Slices in GO\". An array has a fixed size, while a slice is flexible and can change size. Slices are more commonly used than arrays because of this flexibility.\nUnlike arrays, slices are defined only by the type of elements they hold, not by their length. An uniniti..."
url: "https://hashnode.com/posts/slices-in-go/6722680aac81a6a045ee2e5f"
---

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

Discussion

# [Slices in GO](https://nikhilkumar007.hashnode.dev/slices-in-go?utm_source=hashnode&utm_medium=feed)

An array has a fixed size, while a slice is flexible and can change size. Slices are more commonly used than arrays because of this flexibility. Unlike arrays, slices are defined only by the type of elements they hold, not by their length. An uniniti...

Oct 30, 2024 · 2 min read · nikhilkumar007.hashnode.dev  
Updated Dec 27, 2024  
Read the article

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

## Written by

[nikhil](https://hashnode.com/@NikhilKumar007)

@NikhilKumar007 · India

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

hello world

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
