Getting TestCase Based I/O Without Any Loop In Golang