Download Latest Version v0.7.0 (2024-01-28) source code.zip (225.7 kB)
Email in envelope

Get an email when there's a new version of gokv

Home / v0.3.0
Name Modified Size InfoDownloads / 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, called MarshalFormat, as well as the related MarshalFormat enum (custom type + related const values) in each implementation package
  • Added gokv.Store implementations:
    • Package badgerdb - A gokv.Store implementation for BadgerDB (issue #16)
    • Package consul - A gokv.Store implementation for Consul (issue #18)
    • Package etcd - A gokv.Store implementation for etcd (issue #24)

Breaking changes

  • The added Delete(string) error method (see above) means that previous implementations of gokv.Store are not compatible with the interface anymore.
  • Changed: The NewStore() function in gomap and syncmap now has an Option parameter. Required for issue #22.
  • Changed: Passing an empty string as key to Set(), Get() or Delete() now results in an error
  • Changed: Passing nil as value parameter to Set() or as pointer to Get() now results in an error. This change leads to a consistent behaviour across the different marshal formats (otherwise for example encoding/json marshals nil to null while encoding/gob returns an error).
Source: README.md, updated 2018-11-17