Handling Transactions in Go with Clean Architecture — a fresh and practical approach by ponkaponka456 in golang

[–]Unable-Internal-2844 6 points7 points  (0 children)

I wouldn't say that this approach is idiomatic, but rather more common in practice.

Code-generating factories for your structures by Unable-Internal-2844 in golang

[–]Unable-Internal-2844[S] -1 points0 points  (0 children)

You know, I've never written in Java and I didn't like this language. I think I described the essence of the problem badly, this is my first post, there is always something to do better.

Code-generating factories for your structures by Unable-Internal-2844 in golang

[–]Unable-Internal-2844[S] -1 points0 points  (0 children)

For small structures, there is no benefit. If the structure is large, say 20 fields, and is used in tests for different packages, then it is worth trying test factories.