Back to Browse

Cgo - Adding C code to your Go project

5.8K views
Jan 27, 2023
7:29

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

Download

1 formats

Video Formats

360pmp414.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Cgo - Adding C code to your Go project | NatokHD