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 hashes)
Built Distribution
golang-0.0.3-py3-none-any.whl
(2.1 kB
view hashes)