python's list type implementation on go.
$ go get github.com/emre/golist
my_list := golist.New()
my_list := golist.New("Galatasaray", "Real Madrid")
my_list.Append("Drogba")
my_list.Append("Bruma")
other_list := golist.New("Ronaldo", "Bale")
my_list.Extend(other_list)
index, err := my_list.Index("Drogba")
if err != nil {
fmt.Println(err)
}
fmt.Println(index)
my_list.Append("Drogba", "Drogba")
drogba_count := my_list.Count("Drogba")
fmt.Println(drogba_count)
// by value
my_list.Remove("Drogba")
// by index
my_list.Delete(0)
// pops the item which of index zero.
value, err := my_list.Pop(0)
// pops latest item
value, err := my_list.Pop()
goals_list := golist.New("18:Drogba", "56:Bale", "90+2:Sabri Sarioglu")
goals_list.Reverse()
list_size := goals_list.Len()