go-plugin/

directory
v0.0.0-...-b7a7493 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0

README

Build shared object (.so) files.

$ go build -buildmode=plugin -o duck/duck.so duck/duck.go
$ go build -buildmode=plugin -o frog/frog.so frog/frog.go

Check file types

Just for fun, check the file types.

$ file duck/duck.so
$ file frog/frog.so

Depending on your OS, you'll see something like:

$ file duck/duck.so
duck/duck.so: Mach-O 64-bit dynamically linked shared library x86_64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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