Documentation ¶ Overview ¶ AUTOGENERATED FROM executor/common.h Index ¶ func Build(lang, src string) (string, error) func Format(src []byte) ([]byte, error) func Write(p *prog.Prog, opts Options) ([]byte, error) type Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Build ¶ func Build(lang, src string) (string, error) Build builds a C/C++ program from source src and returns name of the resulting binary. lang can be "c" or "c++". func Format ¶ func Format(src []byte) ([]byte, error) Format reformats C source using clang-format. func Write ¶ func Write(p *prog.Prog, opts Options) ([]byte, error) Types ¶ type Options ¶ type Options struct { Threaded bool Collide bool Repeat bool Procs int Sandbox string Fault bool // inject fault into FaultCall/FaultNth FaultCall int FaultNth int Repro bool // generate code for use with repro package } Source Files ¶ View all Source files common.go csource.go Click to show internal directories. Click to hide internal directories.