/go-stack

Stack data in Go.

Primary LanguageGo

How to implement a stack in Go

We are going to implement a generic stack in Go, which means that the stack could store any kind of item. To do that we'll use the empty interface (a empty interface may hold values of any type).