1. Dobrosław Żybort
  2. ListDict


ListDict /

Filename Size Date modified Message
0 B
1.0 KB
4.1 KB
10.2 KB
715 B
4.0 KB
9.7 KB

Moved to:



Package ListDict implement Python types: list and dict for Go.

Documentation online

This package bring list and dict to Go with most methods you can find in Python.

dict := listdict.Dict{"one": 1, "two": 2, "three": 3}

if dict.HasKey("one") {
    // Do something if dict have key "one"

keys := dict.Keys()     // keys = [one two three]
val := dict.Values()    // val = [3 1 2]
// Keys() and Values() are unordered, same as in Python

Requests or bugs?



go get bitbucket.org/gosimple/listdict


The source files are distributed under the Mozilla Public License, version 2.0, unless otherwise noted.
Please read the FAQ if you have further questions regarding the license.