pkg-config-wrapper

Simplify using C libraries 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

find C library flags for Go cgo compilation$ pkg-config-wrapper --cflags --libs openssl
get compiler flags needed for a C library$ pkg-config-wrapper --cflags libcurl
check if a C library is installed and available$ pkg-config-wrapper --exists sqlite3 && echo 'found'
get linker flags for linking C code to Go$ pkg-config-wrapper --libs zlib
show version of installed C library$ pkg-config-wrapper --modversion libpng