see more at: https://github.com/menduo/golang
golang
Run Go code in Python.
⚠️: WIP
install
pip install golang
or
pip install git+ssh://git@github.com/menduo/golang.git
example
run code
import golang
code = """
package main
import "fmt"
func main(){
fmt.Println("Hello World from github.com/menduo/golang")
}
"""
golang.run_code(code)
run file
import golang
filepath = "~/ws/contrib/golang/golang/testdata/gocode/code1/main.go"
golang.run_file(filepath)
Release files for golang 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| golang-0.0.3.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| golang-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.8 kB
Release files / golang-0.0.3.tar.gz
| Download URL | golang-0.0.3.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40e72ee0ac6b25a5e91b6f38daa05a5d2f5741ed2b9098fad8acb2ea0730cdab
|
|
BLAKE2b-256 checksum How to use checksums |
80ec9f67006802c4bfb0c9114259f69404e3520ca7b1877a313bf7b4653dbb8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.5
|
Release files / golang-0.0.3-py3-none-any.whl
| Download URL | golang-0.0.3-py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e167f2627144a699263dbeef7e957f39d0c97c2d1ed76fc52e57bbf4b70cce3
|
|
BLAKE2b-256 checksum How to use checksums |
50c52d927b3d3e8de62389160f3922b6e00a08a7886221e793c5ffe5e1459d04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.5
|