templ icon indicating copy to clipboard operation
templ copied to clipboard

[question] go 1.22 iterators / rangefunc

Open netbrain opened this issue 7 months ago • 2 comments

Will the templ framework implement the new rangefuncs / iterators from go 1.22?

Not quite sure if it will add any value to the framework as I just recently picked up on using templ, but I guess it could make looping over stuff easier?

Like for instance creating your own multiple custom iterators on structs or custom slice types for different ways of listing out the data?

netbrain avatar Jul 02 '24 12:07 netbrain