github.com/dannin/go@v0.0.0-20161031215817-d35dfd405eaa/misc/cgo/testplugin/src/sub/plugin1/plugin1.go (about)

     1  // Copyright 2016 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 main
     6  
     7  // // No C code required.
     8  import "C"
     9  
    10  import "common"
    11  
    12  func F() int { return 17 }
    13  
    14  func ReadCommonX() int {
    15  	return common.X
    16  }
    17  
    18  func main() {
    19  	panic("plugin1.main called")
    20  }