Skip to main content

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


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)

Uploaded Source

Built Distribution

golang-0.0.3-py3-none-any.whl (2.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page