Skip to content

Releases: ahrtr/gocontainer

v0.3.0

06 Dec 02:15
Compare
Choose a tag to compare

Two main changes:

  1. Added two methods below into linkedMap,
    GetFirstElement() (interface{}, interface{}, bool)
    GetLastElement() (interface{}, interface{}, bool)
  1. Added a .golangci.yml file and fixed all the linter errors.

v0.2.0

06 Sep 06:23
Compare
Choose a tag to compare

New Features

A new data collection BTree is supported. It was originally copied from github.com/google/btree, but is refactored to adapt to the interface convention in this repository. Some improvements are also applied on top of the original design & implementation, so that it's more user-friendly. Originally, any elements must implement the interface "Item" even they are just built-in data types, i.e, int, string, etc.; after the refactoring and improvements, users do not need to implement the "Item" interface any longer for some golang build-in data types. Please refer to Comparator and the examples to get more detailed info.

Notable Changes

One more parameter is added for the function utils.Compare as the third argument. Please refer to Comparator