In this video, we learn how to use Go’s cgo so that we can run C code in our go programs. Visit my website https://hoani.net/guides/software/golang/cgo for more details on this technique.
For a discussion on the pros and cons of using cgo, I found Dave Cheney’s “cgo is not go” blog very interesting https://dave.cheney.net/2016/01/18/cgo-is-not-go.
📕 Chapters 📘
0:00 Introduction
00:44 Running C code in Go
02:41 Compiling C source in Go
03:44 Calling Go from C
06:20 cgo gotchas
07:09 Wrap up
🙏 Special Thanks 🙏
Spence – Cloud Chaser – Intro/Outro music