Skip to content

Glossary: Go in Practice

cgo

Also written: CGO_ENABLED, CGO_ENABLED=0

The way Go code calls C code. A program that uses cgo needs C libraries where it runs, and `CGO_ENABLED=0` makes Go use pure-Go versions instead.

Where the book teaches it

Related terms

Static binaryDynamically linked