cgo

command
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

README

cgo sample

This sample demonstrates the experimental cgo support.

The sample can be built and run as follows:

sudo apt install zlib1g-dev
ego-go build
ego sign cgo
ego run cgo

Make sure that you link libraries statically, e.g., use -l:libz.a instead of -lz. However, libc must be linked dynamically.

You can check with ldd:

$ ldd cgo
linux-vdso.so.1
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
/lib64/ld-linux-x86-64.so.2

Here we only have libc and friends, so this is fine.

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