Interface Go with C libraries

前端 未结 1 527
轮回少年
轮回少年 2020-12-31 01:04

How does one interface a Go program with a C library?

I\'ve been browsing Go\'s source code but I still didn\'t figured it out. If someone has already done so, could

1条回答
  •  离开以前
    2020-12-31 01:29

    Check cgo. Also, take a look at misc/cgo/gmp on the Go source code for an example code on how to wrap a C library in Go.

    0 讨论(0)
提交回复
热议问题