Skip to content

hankchan/goctp

Repository files navigation

goctp

Golang bindings for CTP.

Why Golang

https://golang.org/doc/

The Go programming language is an open source project to make programmers more productive.

Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of run-time reflection. It's a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language.

Why Swig

http://www.swig.org/Doc3.0/Go.html#Go

Go does not support direct calling of functions written in C/C++. The cgo program may be used to generate wrappers to call C code from Go, but there is no convenient way to call C++ code. SWIG fills this gap.

Why goCTP

This is a matter of course.

How to Build goCTP

Only support Linux X64 now.

go get -u github.com/qerio/goctp

make build

How to Build example

make example

FAQ

  1. [golang]如何在windows上使用cgo

About

Golang bindings for CTP.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published