Skip to content

v0.3.0 (2018-11-17)

Choose a tag to compare

@philippgille philippgille released this 17 Nov 11:47
· 467 commits to master since this release
  • 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).