mirror of
https://github.com/golang/go
synced 2024-11-19 00:54:42 -07:00
runtime: add comments for blank import of "unsafe"
Change-Id: Iaad548ea90d3b70341a723450d5e4d4c2b88856f Reviewed-on: https://go-review.googlesource.com/2063 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
1e4b642f8d
commit
1050c4197a
@ -9,7 +9,7 @@
|
||||
|
||||
package runtime
|
||||
|
||||
import _ "unsafe"
|
||||
import _ "unsafe" // for go:linkname
|
||||
|
||||
func cmpstring(s1, s2 string) int {
|
||||
l := len(s1)
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
package runtime
|
||||
|
||||
import _ "unsafe"
|
||||
import _ "unsafe" // for go:cgo_export_static and go:cgo_export_dynamic
|
||||
|
||||
// Export the runtime entry point symbol.
|
||||
//
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
package runtime
|
||||
|
||||
import _ "unsafe"
|
||||
import _ "unsafe" // for go:linkname
|
||||
|
||||
type stdFunction *byte
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
package runtime
|
||||
|
||||
import _ "unsafe"
|
||||
import _ "unsafe" // for go:linkname
|
||||
|
||||
//go:cgo_import_dynamic libc_chdir chdir "libc.so"
|
||||
//go:cgo_import_dynamic libc_chroot chroot "libc.so"
|
||||
|
Loading…
Reference in New Issue
Block a user