mod: upgrade bbolt v1.3.5 -> v1.3.11

This commit is contained in:
mappu 2024-10-05 16:36:41 +13:00
parent 2c5d1946ec
commit 96c05641bd
5 changed files with 15 additions and 12 deletions

View File

@ -6,7 +6,7 @@ import (
"os" "os"
"time" "time"
bolt "github.com/boltdb/bolt" bolt "go.etcd.io/bbolt"
) )
func Bolt_Open(readOnly bool, path string) (*bolt.DB, error) { func Bolt_Open(readOnly bool, path string) (*bolt.DB, error) {

View File

@ -1,11 +1,10 @@
package main package main
import ( import (
//"fmt"
"math/rand" "math/rand"
"os" "os"
bolt "github.com/boltdb/bolt" bolt "go.etcd.io/bbolt"
) )
func random_name() string { func random_name() string {

6
go.mod
View File

@ -1,10 +1,10 @@
module code.ivysaur.me/qbolt module code.ivysaur.me/qbolt
go 1.19 go 1.23
require ( require (
github.com/boltdb/bolt v1.3.1
github.com/mappu/miqt v0.5.0 github.com/mappu/miqt v0.5.0
go.etcd.io/bbolt v1.3.11
) )
replace github.com/boltdb/bolt => go.etcd.io/bbolt v1.3.5 require golang.org/x/sys v0.4.0 // indirect

14
go.sum
View File

@ -1,7 +1,11 @@
github.com/boltdb/bolt v1.3.1 h1:JQmyP4ZBrce+ZQu0dY660FMfatumYDLun9hBCUVIkF4= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps=
github.com/mappu/miqt v0.5.0 h1:BWajkNI9PWlWN6ZDgWKwv1gieBGEImRqlWS8ZqDmDfA= github.com/mappu/miqt v0.5.0 h1:BWajkNI9PWlWN6ZDgWKwv1gieBGEImRqlWS8ZqDmDfA=
github.com/mappu/miqt v0.5.0/go.mod h1:xFg7ADaO1QSkmXPsPODoKe/bydJpRG9fgCYyIDl/h1U= github.com/mappu/miqt v0.5.0/go.mod h1:xFg7ADaO1QSkmXPsPODoKe/bydJpRG9fgCYyIDl/h1U=
go.etcd.io/bbolt v1.3.5 h1:XAzx9gjCb0Rxj7EoqcClPD1d5ZBxZJk0jbuoPHenBt0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0=
go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I=
golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE=
golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

View File

@ -6,8 +6,8 @@ import (
"strconv" "strconv"
"strings" "strings"
bolt "github.com/boltdb/bolt"
"github.com/mappu/miqt/qt" "github.com/mappu/miqt/qt"
bolt "go.etcd.io/bbolt"
) )
type MainWindow struct { type MainWindow struct {