MG's Blog

MG's Blog

Series

How would you do it in golang?

This is a series of articles of how we can use golang to code the most commonly used programs, data structures and more.

Articles in this series

How would you do it in golang: Stacks

May 18, 20212 min read

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 ...

How would you do it in golang: Stacks