Go 语言编写 CPython 扩展 goPy
- 授权协议: BSD
- 开发语言: Python Google Go
- 操作系统: 跨平台
- 软件首页: http://gopy.qur.me/extensions/examples.html
- 软件文档: http://gopy.qur.me/extensions/api.html
软件介绍
goPy 是一个新的开源项目,实现了用 Go 语言来编写 CPython 扩展。
示例代码:
package simple
import (
"fmt"
"gopy"
)
func example(args *py.Tuple) (py.Object, error) {
fmt.Printf("simple.example: %v\n", args)
py.None.Incref()
return py.None, nil
}
func init() {
methods := []py.Method{
{"example", example, "example function"},
}
_, err := py.InitModule("simple", methods)
if err != nil {
panic(err)
}
}
编译方法:
> gopy pymodule.go使用方法:
import simple
simple.example("hello", {123: True})
输出结果:
simple.example: [hello map[123:true]]
Java Message Service API Tutorial and Reference
Hapner, Mark; Burridge, Rich; Sharma, Rahul / 2002-2 / $ 56.49
Java Message Service (JMS) represents a powerful solution for communicating between Java enterprise applications, software components, and legacy systems. In this authoritative tutorial and comprehens......一起来看看 《Java Message Service API Tutorial and Reference》 这本书的介绍吧!
XML、JSON 在线转换
在线XML、JSON转换工具
HSV CMYK 转换工具
HSV CMYK互换工具
