Skip to content

Commit 4b749c5

Browse files
committed
bump version to v6
1 parent 60d6091 commit 4b749c5

File tree

16 files changed

+24
-21
lines changed

16 files changed

+24
-21
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
## null [![GoDoc](https://godoc.org/github.com/guregu/null/v5?status.svg)](https://godoc.org/github.com/guregu/null/v5)
2-
`import "github.com/guregu/null/v5"`
1+
## null [![GoDoc](https://godoc.org/github.com/guregu/null/v6?status.svg)](https://godoc.org/github.com/guregu/null/v6)
2+
`import "github.com/guregu/null/v6"`
33

44
null is a library with reasonable options for dealing with nullable SQL and JSON values
55

@@ -18,7 +18,7 @@ Types in `zero` are treated like zero values in Go: blank string input will prod
1818

1919
## null package
2020

21-
`import "github.com/guregu/null/v5"`
21+
`import "github.com/guregu/null/v6"`
2222

2323
#### null.String
2424
Nullable string.
@@ -51,7 +51,7 @@ Will marshal to JSON null if SQL source data is null. Does not implement `encodi
5151

5252
## zero package
5353

54-
`import "github.com/guregu/null/v5/zero"`
54+
`import "github.com/guregu/null/v6/zero"`
5555

5656
#### zero.String
5757
Nullable string.
@@ -95,8 +95,11 @@ This package isn't intended to be a catch-all data-wrangling package. It is esse
9595

9696
### Package history
9797

98+
#### v6
99+
- Added `ValueOr` method to each type
100+
98101
#### v5
99-
- Now a Go module under the path `github.com/guregu/null/v5`
102+
- Now a Go module under the path `github.com/guregu/null/v6`
100103
- Added missing types from `database/sql`: `Int32, Int16, Byte`
101104
- Added generic `Value[T]` embedding `sql.Null[T]`
102105

byte.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"database/sql"
55
"strconv"
66

7-
"github.com/guregu/null/v5/internal"
7+
"github.com/guregu/null/v6/internal"
88
)
99

1010
// Byte is an nullable byte.

float.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"reflect"
99
"strconv"
1010

11-
"github.com/guregu/null/v5/internal"
11+
"github.com/guregu/null/v6/internal"
1212
)
1313

1414
// Float is a nullable float64.

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/guregu/null/v5
1+
module github.com/guregu/null/v6
22

3-
go 1.21.4
3+
go 1.22.12

int.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"database/sql"
55
"strconv"
66

7-
"github.com/guregu/null/v5/internal"
7+
"github.com/guregu/null/v6/internal"
88
)
99

1010
// Int is an nullable int64.

int16.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"database/sql"
55
"strconv"
66

7-
"github.com/guregu/null/v5/internal"
7+
"github.com/guregu/null/v6/internal"
88
)
99

1010
// Int16 is an nullable int16.

int32.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"database/sql"
55
"strconv"
66

7-
"github.com/guregu/null/v5/internal"
7+
"github.com/guregu/null/v6/internal"
88
)
99

1010
// Int32 is an nullable int32.

int_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strconv"
99
"testing"
1010

11-
"github.com/guregu/null/v5/internal"
11+
"github.com/guregu/null/v6/internal"
1212
)
1313

1414
var (

value_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"reflect"
99
"testing"
1010

11-
"github.com/guregu/null/v5/internal"
11+
"github.com/guregu/null/v6/internal"
1212
)
1313

1414
func TestValue(t *testing.T) {

zero/byte.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"database/sql"
55
"strconv"
66

7-
"github.com/guregu/null/v5/internal"
7+
"github.com/guregu/null/v6/internal"
88
)
99

1010
// Byte is a nullable byte.

0 commit comments

Comments
 (0)