Go 1.22 is not yet released. These are work-in-progress release notes. Go 1.22 is expected to be released in February 2024.
TODO: complete this section
TODO: complete this section, or delete if not needed
The special comment that precedes
import
"C"
may now include two
new #cgo
directives.
#cgo
noescape
cFunctionName
tells cgo that Go pointers passed to the C function
cFunctionName
do not escape.
#cgo
nocallback
cFunctionName
tells cgo that the C function cFunctionName
does
not call any Go functions.
cgo
documentation for more details.
TODO: complete this section, or delete if not needed
TODO: complete this section, or delete if not needed
TODO: complete this section, or delete if not needed
As always, there are various minor changes and updates to the library, made with the Go 1 promise of compatibility in mind. There are also various performance improvements, not enumerated here.
TODO: complete this section
The new Null[T]
type
provide a way to scan nullable columns for any column types.
The Value.IsZero
method will now return true for a floating-point or complex
negative zero, and will return true for a struct value if a
blank field (a field named _
) somehow has a
non-zero value.
These changes make IsZero
consistent with comparing
a value to zero using the language ==
operator.
TODO: complete this section, or delete if not needed