Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 1.01 KB

README.md

File metadata and controls

28 lines (16 loc) · 1.01 KB

Slices

logo

A very short example of slices in Go. Copied from my examples of common data structures, I am using the stack as a way to implement slices.

Table of Contents

Arrays

A stack built with a traditional array. You will notice this as a fixed size.

Copy

A stack built with slices implementing the copy method. This is more efficient than a traditional array as it allows you to easily grow the array by making larger arrays and copying your contents over.

Append

A stack built with append. Append allows us to grow the array as we need, using as little memory as possible.

##License This tool is protected by the GNU General Public License v2.

Copyright Jeffrey Hann 2014