Categories
c ffi go

How do I call C from Go using the “foreign function interface”

How do I use Go’s “foreign function interface” to call out to a C function?

This interface is mentioned on the FAQ, but I cannot see it mentioned elsewhere in the docs.