Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2018-11-17 | 1.8 kB | |
v0.3.0 (2018-11-17) source code.tar.gz | 2018-11-17 | 23.8 kB | |
v0.3.0 (2018-11-17) source code.zip | 2018-11-17 | 46.6 kB | |
Totals: 3 Items | 72.2 kB | 0 |
- Added: Method
Delete(string) error
(issue #8) - Added: All
gokv.Store
implementations in this package now also support gob as marshal format as alternative to JSON (issue #22)- Part of this addition are a new field in the existing
Options
structs, calledMarshalFormat
, as well as the relatedMarshalFormat
enum (custom type + relatedconst
values) in each implementation package
- Part of this addition are a new field in the existing
- Added
gokv.Store
implementations:
Breaking changes
- The added
Delete(string) error
method (see above) means that previous implementations ofgokv.Store
are not compatible with the interface anymore. - Changed: The
NewStore()
function ingomap
andsyncmap
now has anOption
parameter. Required for issue #22. - Changed: Passing an empty string as key to
Set()
,Get()
orDelete()
now results in an error - Changed: Passing
nil
as value parameter toSet()
or as pointer toGet()
now results in an error. This change leads to a consistent behaviour across the different marshal formats (otherwise for exampleencoding/json
marshalsnil
tonull
whileencoding/gob
returns an error).