mirror of https://github.com/go-python/gopy.git
27 lines
651 B
Go
27 lines
651 B
Go
|
// Copyright 2015 The go-python Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
/*
|
||
|
gopy-gen generates language bindings that make it possible to call Go code
|
||
|
and pass objects from Java.
|
||
|
|
||
|
Using gopy-gen
|
||
|
|
||
|
gopy-gen takes a Go package and generates bindings for all of the exported
|
||
|
symbols. The exported symbols define the cross-language interface.
|
||
|
|
||
|
The gopy-gen tool generates both an API stub in Python, and binding code in
|
||
|
Go. Start with a Go package:
|
||
|
|
||
|
package hi
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func Hello(name string) {
|
||
|
fmt.Println("Hello, %s!\n", name)
|
||
|
}
|
||
|
|
||
|
*/
|
||
|
package main
|