Skip to content

Commit

Permalink
mark NullVal as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhuravlev committed Jan 21, 2024
1 parent 8a7ed4f commit 077060c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions null.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
)

// NullVal represents the nullable value for this type.
// Deprecated: Use github.com/kazhuravlev/optional.
type NullVal[T any] struct {
Val T `json:"v"`
Valid bool `json:"ok"`
Expand Down

0 comments on commit 077060c

Please sign in to comment.