Last week I did some progress on plc4go that I want to summarize with this mail:
big.Int & big.Float Support: Like in Java we can now support oversized ints and floats (<64bits) in golang. This is currently only implemented for parsing positive ints. Code for the other uses cases (real, -int) on the go Primary use case was reserved uint 128 from the ads mpsec Initial ADS integration Integration on ads into golang was started but postponed by refactoring regarding testrun parsing and reporting in the plc4go pom simple Makefile IDE’s such as golang have a default integration for Makefile. Therefore a Makefile was added which in turn maps to the Maven goals (e.g. make install —> mvn install, make build —> mvn compile) Fixed literal issues in ADS mspec In mspec there where literals present which ended at „L“. This was due to java requiring them to end with „but“ produced boken code in other languages. This was mitigated by adding a „toTypeSafeCompare“ to the GoLanguageHelper where needed (There might be other places that might pop up as we go). Added skipped test suites for S7 and ADS The integration test suites for S7 and ADS are added to the codebase and set to skipped. Both drivers have as of now no working driver. Smaller fixes on DriverTestRunner Added missing Uint32 support Added BINT and BFLOAT as link to big.Int and big.Float Added Support for the delay step Added Support for driver parameters Smaller misc fixes with broken control flow Zerlog as log backend Better API, rocket fast xmlUnit report on Jenkins Jenkins now report all golang tests in a xunit compatible report Convert missing base64 to hex in xml test suites During a refactoring values were changed from base64 to hex representation. Couple of places were missing which only was noticed during the golang ads tests. There should be no more base64 left as of now. Tabs vs spaces Golang uses tabs (which is a good style if you dig into it;) To avoid reformatting and commit flip flop there were changes at several spaces: Replace spaces with tabs in free marker template Add .editorconfig for „.go“ and „.ftlh“ were the setting for freemarker is: „don’t touch“ Added a proper go-fmt to makefile and fixed the one in maven to format on install Reformator all checked in files Of course smaller things which you can find in the git commit log :o) Thats that for the update from last week, I wish you a happy monday and a happy plc4x coding week :) Sebastian
