2 "Title": "Go 1.22 Release Notes",
7 NOTE: In this document and others in this directory, the convention is to
8 set fixed-width phrases with non-fixed-width spaces, as in
9 <code>hello</code> <code>world</code>.
10 Do not send CLs removing the interior tags from such phrases.
14 main ul li { margin: 0.5em 0; }
17 <h2 id="introduction">DRAFT RELEASE NOTES — Introduction to Go 1.22</h2>
21 Go 1.22 is not yet released. These are work-in-progress
22 release notes. Go 1.22 is expected to be released in February 2024.
26 <h2 id="language">Changes to the language</h2>
29 TODO: complete this section
32 <h2 id="tools">Tools</h2>
34 <h3 id="go-command">Go command</h3>
37 TODO: complete this section, or delete if not needed
42 <p><!-- CL 497837 --> The special comment that precedes
43 <code>import</code> <code>"C"</code> may now include two
44 new <code>#cgo</code> directives.
47 <code>#cgo</code> <code>noescape</code> <code>cFunctionName</code>
48 tells cgo that Go pointers passed to the C function
49 <code>cFunctionName</code> do not escape.
52 <code>#cgo</code> <code>nocallback</code> <code>cFunctionName</code>
53 tells cgo that the C function <code>cFunctionName</code> does
54 not call any Go functions.
57 See <a href="/cmd/cgo#hdr-Optimizing_calls_of_C_code">the <code>cgo</code>
58 documentation</a> for more details.
61 <h2 id="runtime">Runtime</h2>
64 TODO: complete this section, or delete if not needed
67 <h2 id="compiler">Compiler</h2>
70 TODO: complete this section, or delete if not needed
73 <h2 id="linker">Linker</h2>
76 TODO: complete this section, or delete if not needed
79 <h2 id="library">Core library</h2>
81 <h3 id="minor_library_changes">Minor changes to the library</h3>
84 As always, there are various minor changes and updates to the library,
85 made with the Go 1 <a href="/doc/go1compat">promise of compatibility</a>
87 There are also various performance improvements, not enumerated here.
91 TODO: complete this section
94 <dl id="database/sql"><dt><a href="/pkg/database/sql/">database/sql</a></dt>
96 <p><!-- https://go.dev/issue/60370, CL 501700 -->
97 The new <a href="/pkg/database/sql/#Null"><code>Null[T]</code></a> type
98 provide a way to scan nullable columns for any column types.
103 <dl id="reflect"><dt><a href="/pkg/reflect/">reflect</a></dt>
105 <p><!-- https://go.dev/issue/61827, CL 517777 -->
106 The <a href="/pkg/reflect/#Value.IsZero"><code>Value.IsZero</code></a>
107 method will now return true for a floating-point or complex
108 negative zero, and will return true for a struct value if a
109 blank field (a field named <code>_</code>) somehow has a
111 These changes make <code>IsZero</code> consistent with comparing
112 a value to zero using the languague <code>==</code> operator.
117 <h2 id="ports">Ports</h2>
120 TODO: complete this section, or delete if not needed