You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reflect.Type.Fields() iter.Seq[StructField] and reflect.Type.Methods() iter.Seq[Method] would be more convenient than having to call i := range myType.NumFields() and myType.Field(i) etc.
You could also add iterators to reflect.Value as well but those are less obviously useful. Probably worth doing just for completeness though.
Edit: The proposal is now to return an iter.Seq2[int, StructField] so you can use .Field(i).
jimmyfrasche, DeedleFake, dsnet, mvdan, silkeh and 1 more