Skip to content

Releases: GridProtectionAlliance/go2cs

Experimental Release

13 Mar 21:21
289b939
Compare
Choose a tag to compare
Experimental Release Pre-release
Pre-release

This is a release of go2cs for experimental purposes

Several users have asked for a copy of the executable for testing purposes - so that is what this release represents.

FYI: Go should already be installed and running properly before attempting conversion, this includes properly defined GOPATH and GOROOT environmental variables. These environmental variables are used by the go2cs executable to locate code. Testing for this experimental release was performed with Go v1.17.3 - but other versions of Go are expected to work equally as well.

Note: Grammar used by this version of go2cs does not yet support generics available in the forthcoming Go v1.18 release.

Deployment steps:

  1. Download dependencies.zip below and extract to $GOPATH/src (%GOPATH%\src on Windows)
  2. Download the go2cs executable for your target OS and copy to a convenient location, e.g., $GOPATH/bin (%GOPATH%\bin on Windows)

Note: On POSIX platforms, it will be necessary to mark the downloaded go2cs file as executable, for example:

chmod u+x $GOPATH/bin/go2cs

Caveats:

  • All but the most simple code will need some TLC to get things to compile - larger projects with many dependencies = more work
  • A small subset of pre-converted Go Standard Library exists and needs to be deployed before compiling converted code (see dependencies.zip below)
  • The pre-converted Go Standard Library is not full featured - the unexpected should be expected at this stage
  • If there's a key Go standard library you require, you can check the latest automated conversion here and see how close it is for your use
  • If you are attempting to convert a Go source file that is not in $GOPATH/src, use the full path name for the input file

Certainly feel free to report issues, these will be tracked and evaluated. However this is just a pet project for me that I work on in my free time, mostly on the weekends - as such, it may take me a bit to get around to addressing specific issues. The current track is targeting specific behavioral uses cases for proper conversion. - as each use case gets better and better, so does the conversion of the Go Standard Library and other target projects as well.

Thanks in advance for your testing and feedback!


SHA256 file hashes for binary downloads:

Filename Hash
dependencies.zip 9D93A2B46CBB6E69CBD72ED3FC720BF2B9662169C4454DA179DFABA3A06D4534
go2cs-linux-arm.zip 9C63844507BD1B41949671131E250EC73C2D148A8D1B79ED8C4D4C743832E139
go2cs-linux-x64.zip D58D301364BC163D65C8986586EDA990F2B94776597D72CCDF6CEB5F1EB6DC54
go2cs-osx-x64.zip 5C8F408F7DEE78C93FEF79E6E5207E71F928FC070FE603E46F28C73CCFEA75DF
go2cs-win-x64.zip DAAF96A787FEA014DA6121EA6879CE76E13FF6069D6E3D0F71904995B6AD09D1