News for hackers. Stuff that matters.
Re:Better HTTP server routing in Go 1.22 by cowl on Monday October 16, 2023 @07:22PM (#37908044)
How is this new to Go? Almost all Java frameworks that rely on Annotations do registration at a distance. Controllers are Routinely declared on different packages and even injected from dependency libraries.
Re:Better HTTP server routing in Go 1.22 by throwaway2037 on Monday October 16, 2023 @08:42PM (#37908743)
I agree with most of this post. The one exception in my experience: Vertx. I never saw any annotations for routing. It is a very verbose library, but that means there is no black magic.