Go中是否有mmseg,还是可以从Go中调用自定义C函数?

I want to use mmseg in Go as in other languages, for example, in python you can use pymmseg

So, is there is a similar Go package?

Or, how can I call the C functions from Go? Or, how can I call shared library (*.so) from Go like in python?

you can call use C Libs as described in this tutorial:

http://cheesesun.blogspot.de/2009/12/basic-cgo.html

and:

http://siganakis.com/linking-c-libraries-with-go-lang-and-stdc99

or you may have a look at this library:

https://github.com/awsong/MMSEGO

its for chinese, but you may could use it to put your own algorithm there.

Use cgo to call C code from Go.

Command cgo

C? Go? Cgo!