gors is an experimental go toolchain written in rust (parser, compiler, codegen).
This method requires the Rust toolchain to be installed on your machine.
git clone -–depth=1 https://github.com/aymericbeaumet/gors.git /tmp/gors
cargo install --path=/tmp/gors/gors-cli
brew install rustup [email protected] binaryen watchexec
rustup toolchain install stable && rustup toolchain install nightly && rustup default stable
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
cargo install --force cargo-fuzz
cargo clippy
cargo build
cargo test -- --nocapture --test-threads=1
cargo +nightly fuzz run scanner
cargo doc -p gors --open
RUST_LOG=debug cargo run -- tokens gors-cli/tests/programs/fizzbuzz.go
RUST_LOG=debug cargo run -- ast gors-cli/tests/programs/fizzbuzz.go
RUST_LOG=debug cargo run -- build --emit=rust gors-cli/tests/programs/fizzbuzz.go
RUST_LOG=debug cargo run -- run gors-cli/tests/programs/fizzbuzz.go