Just FTA, I've implemented such File diff based go test checking in my 

easygen <https://github.com/go-easygen/easygen> universal code/text 
generator
https://github.com/go-easygen/easygen#details

without pulling any extra packages. 

Specifically, the test file is at, 
https://github.com/go-easygen/easygen/blob/master/cmd/easygen/main_test.go

HTH


On Friday, April 14, 2017 at 3:55:13 AM UTC-4, mhh...@gmail.com wrote:
>
> do you mean something like git diff ? Would like toooo.
>
> On Thursday, April 13, 2017 at 7:35:42 PM UTC+2, Tong Sun wrote:
>>
>> My program works on files, read from input and write to output. 
>>
>> Is there any ready-made and *light *testing packages that allows me 
>> checking whether the new output is the same as before? 
>>
>> Thanks
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to