python-go

command module
v0.0.0-...-d206cb5 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 2 Imported by: 0

README

Extend Python with Go

Prerequisites

  • go 1.21.0
  • python 3.11

Setup

Set up Python virtual environment:

python3 -m venv .venv
source .venv/bin/activate

Build:

# linux
go build -buildmode=c-shared -o fib.so

# macOS
go build -buildmode=c-shared -o fib.dylib

# windows
go build -buildmode=c-shared -o fib.dll

Run

python main.py

Docs

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