3 ms·
Is see stuff like 'cgo' and 'import "C"'. What's going on here?
by tosseraccount 11y ago
Is see stuff like 'cgo' and 'import "C"'.
What's going on here?
- fit2rule 11y agoThis is the glue that the Go compiler needs to export its symbols in a way that they can be used from the C side of things in Objective-C, and vice versa. Think of it like a toll-free bridge [ * ] between the ObjC and Golang runtimes. [ * - See https://en.wikipedia.org/wiki/Bridging_(programming) https://en.wikipedia.org/wiki/Bridging_(programming) ]