Skip to content

Commit 30a09a2

Browse files
committed
Release 2.0
1 parent 232037e commit 30a09a2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ id, err := box.Put(&Person{ FirstName: "Joe", LastName: "Green" })
3636
Want details? **[Read the docs](https://golang.objectbox.io/)** or
3737
**[check out the API reference](https://godoc.org/github.com/objectbox/objectbox-go/objectbox)**.
3838

39-
Latest release: [v1.8.1 (2024-08-29)](https://golang.objectbox.io/)
39+
Latest release: [v2.0.0 (2025-03-11)](https://golang.objectbox.io/)
4040

4141
## Table of Contents:
4242
- [High-performance Golang database](#high-performance-golang-database)

objectbox/version.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2024 ObjectBox Ltd. All rights reserved.
2+
* Copyright 2018-2025 ObjectBox Ltd. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@ func (v Version) String() string {
5757
// VersionGo returns the Version of the ObjectBox-Go binding
5858
func VersionGo() Version {
5959
// for label, use `beta.0` format, increasing the counter for each subsequent release
60-
return Version{1, 8, 1, ""}
60+
return Version{2, 0, 0, ""}
6161
}
6262

6363
// VersionLib returns the Version of the dynamic linked ObjectBox library (loaded at runtime)

test/version_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ func TestObjectBoxVersionString(t *testing.T) {
5050
func TestExpectedObjectBoxVersion(t *testing.T) {
5151
versionGo := objectbox.VersionGo()
5252
versionGoInt := versionGo.Major*10000 + versionGo.Minor*100 + versionGo.Patch
53-
assert.True(t, versionGoInt >= 10700) // Update with new releases (won't fail if forgotten)
54-
assert.True(t, versionGoInt < 20000) // Future next major release
53+
assert.True(t, versionGoInt >= 20000) // Update with new releases (won't fail if forgotten); e.g. >= V2.0.0
54+
assert.True(t, versionGoInt < 30000) // Future next major release; e.g. not yet V3.0.0
5555

5656
versionLib := objectbox.VersionLib()
5757
versionLibInt := versionLib.Major*10000 + versionLib.Minor*100 + versionLib.Patch

0 commit comments

Comments
 (0)