Since I published that I’ll discontinue the good old GoLib I sadly didn’t wrote a lot, sorry. But that doesn’t mean that nothing happened. First due to own needs GoAudit for tests growed to v5.2.1. asserts and generating have been improved, the output of asserts is now more compatible with standard editors. So navigation to failing tests is more simple. And with capture a package to fetch stdout and stderr output has been added.
One of the new projects created based on the GoLib is GoTogether. It is focussed on concurrency by migrating the loop package for backend loops but also with the new actor package for easy actor implementations and the sentinel package for grouping the control of goroutines. Now the v1.0.0 has been released. I hope you like it. More about the project at PROJECTS → GoTogether.
Yes, the Go Library will be discontinued. And there will be several changes more. But hey, don’t panic. 😄 Reason behind it is, that the Go Library has grown too much over time. And sadly all the contained packages cover very different and independent areas. So as a result I already migrated the former Go Library Cells into the GoCells and the Go Library Web into the GoREST project. Additionally GoCouch already directly has been started as own project as well currently the Redis client moves into GoRedis.
Once again a little bugfix for the Go REST Server Library. The last fix also already made a not backward compatible function renaming of jwt.AddTokenToRequest() to jwt.AddToRequest(). Reason has been that the part Token is redundant through the package name. Now both are available but the old one has a comment marking it as deprecated. More about the project at PROJECTS → Go REST Server Library.
It’s only a minor fix regarding status codes. So far calling a handler with an unsupported (unimplemented) the status code 500 (internal server error) has been returned. More correct in the sense of RESTful APIs is instead the status code 405 (method not allowed). This code is now returned. More about the project at PROJECTS → Go REST Server Library.
This bugfix release for the Tideland Go Library affects three packages. The first one is only a small documentation typo in gjp, nothing worth this release. But the second one is in logger. Here I had a test logger as backend in the tests. This now became helpful in other tests too. So I moved it together with helpful methods for testing as TestLogger into the public package itself. The TestLogger embeds the standard Logger interface but also provides
Sadly needed to release a fix short time after the version 4.24.0 of the Tideland Go Library. We’ve detected troubles of the gjp parsing and processing documents containing empty arrays. Funnily fixing this bug led to a better internal design. 😄 More about the project at PROJECTS → Go Library.
Short time after the version 4.23.0 the 4.24.0 has been released. It’s a nice mix of different package extensions. The first one extends and fixes the audit test package. So Assertion now provides WaitTested() to run a user defined test function after receiving data on a signal channel out of a goroutine. So far only equality has been testable. Additionally Assertion now knows SetFailable() to pass the testing.T in a testing.
The new version 4.23.0 contains two major changes. First is the new package gjp, an acronym for Generic JSON Parser. Reason for it is the fact, that sometimes JSON documents aren’t very good representable by nested Go structures. Here Go allows to parse documents into empty interfaces. But these are inconvenient to handle too. The GJP encapsulates this way of parsing and provides access by pathes. Think of the following document parsed with myDoc, err := gjp.
Short time after verion 2.14.0 I had to release the version 2.15.0. Sadly it’s incompatible with its predecessor, but only with the new introduced Job method Path(). This now returns an instance of the type Path providing more detailed access to its parts. Beside getting these by index the Path now also contains accessors to Domain(), Resource(), and ResourceID(). The accessors provided by Job are now deprecated and will be removed at some time later when version 3 will be reased.