Another Go implementation, but with reflection.