A Go library of Array
Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
int_array.go
int_array_test.go
wercker.yml

README.md

Go Array Libray wercker status

go-array is a library of like ruby's Array.

Installation

$ go get github.com/ramtiga/go-array

Usage

import (
    "github.com/ramtiga/go-array"
)

arry := array.IntArray{1, 2, 3, 4, 5}

arry.Length()    // returns => 5
arry.Push(6)     // arry => {1, 2, 3, 4, 5, 6}
arry.Pop()       // arry => {1, 2, 3, 4, 5}
arry.First()     // returns => 1
arry.Last()      // returns => 5
arry.Shift()     // arry => {2, 3, 4, 5}

// other methods  
// Unshift, Concat, Clear, Delete, Delete_at, 
// Index, Index, Reverse, Join, Uniq, Sort

TODO

  • StringArray

License

MIT

Author

ramtiga