# README
rustgo
call rust code from go
Start up
# build wasm
make zero
# test
make test
Usage
go get github.com/gopartyparrot/rust2go
import (
"fmt"
"github.com/gopartyparrot/rust2go"
)
func main() {
b, _ := rust2go.F64ToFixBits(ctx, 0.25)
f, _ := rust2go.U128BitsToFix(ctx, big.NewInt(4611686018427387904))
}
Benchmarks
cpu: Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz
BenchmarkFixFunctions
BenchmarkFixFunctions-12 68386 42035 ns/op 17977 B/op 117 allocs/op
FAQ
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
**
In practice, U128BitsToFix got wrong value some time.
No description provided by the author
No description provided by the author
No description provided by the author