github.com/s1s1ty/go@v0.0.0-20180207192209-104445e3140f/misc/swig/stdio/file.go (about)

     1  // Copyright 2017 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  // This file is here just to cause problems.
     6  // file.swig turns into a file also named file.go.
     7  // Make sure cmd/go keeps them separate
     8  // when both are passed to cgo.
     9  
    10  package file
    11  
    12  //int F(void) { return 1; }
    13  import "C"
    14  
    15  func F() int { return int(C.F()) }