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

gosimple/listdict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python List and Dict for Go

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages