---
title: "Discussion on \"How would you do it in golang: Stacks\" | Hashnode"
description: "Discussion on \"How would you do it in golang: Stacks\". To implement a stack in golang we can make use of the slice datatype which golang provides which allows us to modify the size on the fly. If we were doing it in C, we would need to define a max size for the array. \nLets start with a simple structure ..."
url: "https://hashnode.com/posts/how-would-you-do-it-in-golang-stacks/60a3f2ed04af733ed7d16460"
---

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

Discussion

# [How would you do it in golang: Stacks](https://mridulganga.dev/how-would-you-do-it-in-golang-stacks?utm_source=hashnode&utm_medium=feed)

To implement a stack in golang we can make use of the slice datatype which golang provides which allows us to modify the size on the fly. If we were doing it in C, we would need to define a max size for the array. Lets start with a simple structure ...

May 18, 2021 · 2 min read · mridulganga.dev  
Read the article

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

## Written by

[Mridul Ganga](https://hashnode.com/@mridulganga)

@mridulganga · Bangalore, IN

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

Me do dev

I am a full stack developer mainly using golang. I work on Cloud at HPE, Bangalore, India.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
