1)基于slice类型 (转载)https://blog.csdn.net/xcl168/article/details/43307321 https://github.com/xcltapestry/xclpkg/blob/master/algorithm/stack.go 2)基于list https://www.jb51.net/article/61288.htm