thanks, I'll take a look! 🙏
http library has several good examples
a simple one that can be part of path routers
https://pkg.go.dev/net/http#Client
these closures can themselves be interfaces as this very common example:
https://pkg.go.dev/net/http#Handler
but another version that uses concrete types, and the distinction between them is that the data provided by the closure is - very often, builtin types:
Discussion
no problem... it's something i've wanted to do for a long time, help people learn how to do this stuff... it all took me a lot of time to get the opportunity to teach myself how to use it but because i have that experience and knowledge now, i can help you find the right methodology sooner because often times that's just knowing it exists