pkg-config-wrapper

Simplifies including C code in Go programs with pkg-config

brewmacoslinux
Try with needOr install directly
Source

About

Easier way to include C code in your Go program

Commands

pkg-config-wrapper

Examples

Get C compiler flags for a library$ pkg-config-wrapper --cflags libssl
Get linker flags for compiling with C dependencies$ pkg-config-wrapper --libs libssl libcrypto
Use in Go cgo build with environment variables$ CGO_CFLAGS=$(pkg-config-wrapper --cflags sqlite3) CGO_LDFLAGS=$(pkg-config-wrapper --libs sqlite3) go build