- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for statement (0.24 sec)
-
src/cmd/cgo/ast.go
continue } for _, spec := range d.Specs { if s, ok := spec.(*ast.ImportSpec); ok && s.Path.Value == `"C"` { // Replace "C" with _ "unsafe", to keep program valid. // (Deleting import statement or clause is not safe if it is followed // in the source by an explicit semicolon.) f.Edit.Replace(f.offset(s.Path.Pos()), f.offset(s.Path.End()), `_ "unsafe"`) } } } }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jun 07 16:54:27 GMT 2023 - 14.3K bytes - Viewed (0) -
doc/godebug.md
not the older version. To override these defaults, a main package's source files can include one or more `//go:debug` directives at the top of the file (preceding the `package` statement). Continuing the `panicnil` example, if the module or workspace is updated to say `go` `1.21`, the program can opt back into the old `panic(nil)` behavior by including this directive: //go:debug panicnil=1
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Tue Apr 16 17:29:58 GMT 2024 - 13.5K bytes - Viewed (0) -
src/cmd/cgo/doc.go
/* Implementation details. Cgo provides a way for Go programs to call C code linked into the same address space. This comment explains the operation of cgo. Cgo reads a set of Go source files and looks for statements saying import "C". If the import has a doc comment, that comment is taken as literal C code to be used as a preamble to any C code generated by cgo. A typical preamble #includes necessary definitions:
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Sun Mar 31 09:02:45 GMT 2024 - 42.1K bytes - Viewed (0) -
doc/go_mem.html
The completion of all <code>init</code> functions is synchronized before the start of the function <code>main.main</code>. </p> <h3 id="go">Goroutine creation</h3> <p class="rule"> The <code>go</code> statement that starts a new goroutine is synchronized before the start of the goroutine's execution. </p> <p> For example, in this program: </p> <pre> var a string func f() { print(a) }
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Mon Mar 04 15:54:42 GMT 2024 - 26.6K bytes - Viewed (0)