I have written a simple stack implementation. This works as expected.
package main import "fmt" type Stack struct { data []interface{} } func