I found myself needing to find the index of an item in a collection and was surprised to learn there’s no native way to do it. A little looking reveals that Go has a function, slices.Index, that does exactly this. Any chance we’ll see that implemented at some point? I did find jmooring’s partial functions to do this and slices.IndexFunc, but it seems like the native Go options might be the better option if available.
Relatively new to Hugo and enjoying it tremendously. Thanks for all the hard work you’ve put into it over the years.