Bracket syntax for custom struct types in Go
I’m willing to create C++ STL in Go. Is there a way to create custom structs that implement bracket syntax for index accessing? Assume this is my array type: type Array[T any] struct { values []T } Is there any way I can add bracket syntax indexation instead of Array.At() or any other? I want… Read More Bracket syntax for custom struct types in Go