Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5: More types, generics #77

Merged
merged 5 commits into from
Feb 11, 2024
Merged

v5: More types, generics #77

merged 5 commits into from
Feb 11, 2024

Conversation

guregu
Copy link
Owner

@guregu guregu commented Feb 11, 2024

  • Now a Go module under the path github.com/guregu/null/v5
  • Added missing types from database/sql: Int32, Int16, Byte
  • Added generic Value[T] embedding sql.Null[T]
    • This doesn't support TextMarshaler because there's no generic way to support all types (e.g. structs). We could support some types but I'm not sure if that's useful.

Behavior from v4 should be unchanged, but the canonical import path is different so I figure it's best to bump it.

Closes #67

@guregu guregu merged commit 25a9e71 into master Feb 11, 2024
2 checks passed
@guregu guregu deleted the v5-dev branch February 11, 2024 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generics support
1 participant