native

command
v0.0.0-...-dd65253 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: MIT, GPL-3.0 Imports: 1 Imported by: 0

README

This example demonstrates a workflow with native code integration.

Preparation

gvm install go1.1
gvm use go1.1
gvm pkgset create libnative
gvm pkgset use libnative

Native Code Installation

gvm pkgset use libnative
./configure --prefix=${GVM_OVERLAY_PREFIX}
make && make install

Go Integration Testing

CGO_CFLAGS="-I${GVM_OVERLAY_PREFIX}/include" CGO_LDFLAGS="${GVM_OVERLAY_PREFIX}/lib/libnative.a" go build -v -x .go build
./native

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL