http://bugs.winehq.org/show_bug.cgi?id=25014
--- Comment #3 from Albert Strasheim fullung@gmail.com 2010-11-03 06:31:33 CDT --- The crypto/rsa code is here:
http://code.google.com/p/go/source/browse/src/pkg/crypto/rsa/
But I don't think that's going to help you directly.
The Windows-specific code in Go is here:
http://code.google.com/p/go/source/browse/src/pkg/syscall http://code.google.com/p/go/source/browse/src/pkg/runtime/windows
You can checkout the whole Go source tree with:
cd $HOME hg clone https://go.googlecode.com/hg/ go
To do a Windows build on Linux (I'm on Fedora 14... F13's mingw-binutils is broken), you need to do:
yum install mingw32-w32api mingw32-binutils mingw32-cpp mingw32-gcc mingw32-runtime wine
export GOROOT=$HOME/go cd $GOROOT wget http://codereview.appspot.com/download/issue2515043_9001.diff hg patch --no-commit issue2515043_9001.diff cd src rm -rf ~/.wine WINEARCH=win32 HOST_AR=i686-pc-mingw32-ar GOHOSTARCH=386 CC=i686-pc-mingw32-gcc GOOS=windows GOARCH=386 MAKEFLAGS=-j1 ./make.bash
This should build the Go Windows binaries into $GOROOT/bin and the Go packages into $GOROOT/pkg.
Now you can do
cd $GOROOT/src/pkg/crypto/rsa WINEARCH=win32 GOHOSTARCH=386 GOOS=windows GOARCH=386 MAKEFLAGS=-j1 make test
This will produce an 8.out.exe, which is the unit test.
The relevant thread on golang-dev:
http://groups.google.com/group/golang-dev/browse_thread/thread/d299bc7c074df...
Let me know if you need any other information.