github.com/shijuvar/go@v0.0.0-20141209052335-e8f13700b70c/src/runtime/cgo.go (about)

     1  // Copyright 2014 The Go Authors.  All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package runtime
     6  
     7  import "unsafe"
     8  
     9  //go:cgo_export_static main
    10  
    11  // Filled in by runtime/cgo when linked into binary.
    12  
    13  //go:linkname _cgo_init _cgo_init
    14  //go:linkname _cgo_malloc _cgo_malloc
    15  //go:linkname _cgo_free _cgo_free
    16  //go:linkname _cgo_thread_start _cgo_thread_start
    17  
    18  var (
    19  	_cgo_init         unsafe.Pointer
    20  	_cgo_malloc       unsafe.Pointer
    21  	_cgo_free         unsafe.Pointer
    22  	_cgo_thread_start unsafe.Pointer
    23  )