golang
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
golang-0.0.3.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file golang-0.0.3.tar.gz
.
File metadata
- Download URL: golang-0.0.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40e72ee0ac6b25a5e91b6f38daa05a5d2f5741ed2b9098fad8acb2ea0730cdab |
|
MD5 | 4bca4dd7c993af50564ddc62b3863102 |
|
BLAKE2b-256 | 80ec9f67006802c4bfb0c9114259f69404e3520ca7b1877a313bf7b4653dbb8f |
File details
Details for the file golang-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: golang-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e167f2627144a699263dbeef7e957f39d0c97c2d1ed76fc52e57bbf4b70cce3 |
|
MD5 | 212dcc8c459b52b87f000bbe91ef54df |
|
BLAKE2b-256 | 50c52d927b3d3e8de62389160f3922b6e00a08a7886221e793c5ffe5e1459d04 |