Ian Lance Taylor talks about adding the append function. When the Go language was first publicly released it contained a package named container/vector. The type vector.Vector
was a name for the type []interface{}
. Vector
supported methods like Len
, Cap
, At
, Set
, Insert
, Delete
, Push
, Pop
, and several more. You can see the source code at on Github. An interesting aspect of the package is that string
and int
versions of Vector
were automatically generated by copying the file vector.go with edits applied by gofmt -r.
Register to comment or vote on this story