This is not simple in any way.
cgo is convenient for being able to use "lib*" packages, but calling these packages is not free, and certainly writing cgo for performance reasons is not likely to be a gain.
Go is plenty fast for most things, notably things that work well with a GC... but cgo doesn't make the GC go away.
Go is plenty fast for most things, notably things that work well with a GC... but cgo doesn't make the GC go away.