Skip to contents

Compile a Go source file using the vendored dependencies

Usage

mangoro_go_build(src, out, gomaxprocs = 1, gocache = NULL, ...)

Arguments

src

Path to the Go source file

out

Path to the output binary

gomaxprocs

Number of threads for Go build (sets GOMAXPROCS env variable)

gocache

Path to Go build cache directory. If NULL (default), uses a temporary directory to comply with CRAN policy. Set to NA to use the default Go cache location.

...

Additional arguments to pass to Go build

Value

Path to the compiled binary