diff --git a/doc/go1.22.html b/doc/go1.22.html index 1bf759a9a6..c32669b13a 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -37,6 +37,27 @@ Do not send CLs removing the interior tags from such phrases. 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.
+
+