Commits

Dobrosław Żybort committed 9b06ce0

Change package name to listdict

  • Participants
  • Parent commits 4e7a33a

Comments (0)

Files changed (7)

-simpletype
+ListDict
 ==========
 
-Package simpletype implement similar to Python types: list and dict for Go
+Package listdict implement similar to Python types: list and dict for Go
 
-[Documentation online](http://godoc.org/bitbucket.org/matrixik/simpletype)
+[Documentation online](http://godoc.org/bitbucket.org/matrixik/listdict)
 
 This package bring list and dict to Go with most methods you can find 
 in Python.
 
-	dict := simpletype.Dict{"one": 1, "two": 2, "three": 3}
+	dict := listdict.Dict{"one": 1, "two": 2, "three": 3}
 
 	if dict.HasKey("one") {
 		// Do something if dict have key "one"
 	// Keys() and Values() are unordered, same as in Python
 
 ### Requests or bugs? 
-<https://bitbucket.org/matrixik/simpletype/issues>
+<https://bitbucket.org/matrixik/listdict/issues>
 
 ## Installation
 
-	go get bitbucket.org/matrixik/simpletype
+	go get bitbucket.org/matrixik/listdict
 
 ## License
 
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
-package simpletype
+package listdict
 
 import (
 	"errors"
 
 // Get returns value for the given key or defaultVal if key is NOT in 
 // the dictionary. defaultVal should be same type as you expect to get.
-//		d := simpletype.Dict{"one": 1, "two": 2}
+//		d := listdict.Dict{"one": 1, "two": 2}
 // 		d["one"]          => 1
 // 		d.Get("one", 4)   => 1
 //		d["three"]        => error
 
 // SetDefault is like Get but will set dict[key] to defaultVal if key is not 
 // already in dict. defaultVal should be same type as you expect to get.
-// 		d := simpletype.Dict{"one": 1, "two": 2}
+// 		d := listdict.Dict{"one": 1, "two": 2}
 // 		d["one"]                 => 1
 // 		d.SetDefault("one", 4)   => 1
 //		d["three"]               => error

File dict_test.go

 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
-package simpletype
+package listdict
 
 import (
 	"reflect"
 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 /*
-Package simpletype implement similar to Python types: list and dict for Go
+Package ListDict implement similar to Python types: list and dict for Go
 
 This package bring list and dict to Go with most methods you can find 
 in Python.
 
-	dict := simpletype.Dict{"one": 1, "two": 2, "three": 3}
+	dict := listdict.Dict{"one": 1, "two": 2, "three": 3}
 
 	if dict.HasKey("one") {
 		// Do something if dict have key "one"
 	// Keys() and Values() are unordered, same as in Python
 
 Requests or bugs? 
-https://bitbucket.org/matrixik/simpletype/issues
+https://bitbucket.org/matrixik/listdict/issues
 */
-package simpletype
+package listdict
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
-package simpletype
+package listdict
 
 import (
 	"errors"
 //}
 
 // String returns list values as string
-//		l := simpletype.List{"one", 2, "three"}
+//		l := listdict.List{"one", 2, "three"}
 // 		l.String() => "one, 2, three"
 func (list List) String() string {
 	var out []string

File list_test.go

 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
-package simpletype
+package listdict
 
 import (
 	"errors"

File simpletype.go

-// Copyright 2012 Dobrosław Żybort
-//
-// This Source Code Form is subject to the terms of the Mozilla Public
-// License, v. 2.0. If a copy of the MPL was not distributed with this
-// file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-package simpletype