Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Latest commit

 

History

History
37 lines (25 loc) · 1.16 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.16 KB

ListDict

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

GoDoc Build Status

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?

https://github.com/gosimple/listdict/issues

Installation

go get github.com/gosimple/listdict

License

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.