How-to guides

How-to guides

Recipes for a task, assuming you already know what you want to do.

Each guide answers one question and stops. None of them teaches cppgo from scratch; the tutorial does that.

You want toReadIt starts from
generate a Go package for a C++ library you already buildGenerate a binding for your own librarya header and the flags it is compiled with
bind a class or function templateBind a C++ template librarya template header and the Go program that uses it
ship the binary with its two C++ filesShip a program that uses a bindinga generated package that already runs on your machine
carry the C++ side inside the Go binaryEmbed the C++ side in the Go binarya program whose source you control
know what a failing call returnsReport failures from C++ to Goa bound call that can fail
gate the generated sources in a pipelineGate a generated package in CIa repository that commits them

When you want the exact surface rather than a task — a flag, a generated signature, an error type — the reference has it.