github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/misc/cgo/testso/cgoso.go (about)

     1  // Copyright 2011 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 cgosotest
     6  
     7  /*
     8  #cgo LDFLAGS: -L. -lcgosotest
     9  void init(void);
    10  void sofunc(void);
    11  */
    12  import "C"
    13  
    14  func Test() {
    15  	C.init()
    16  	C.sofunc()
    17  }
    18  
    19  //export goCallback
    20  func goCallback() {
    21  }