1
0
Fork 0
mirror of https://github.com/imjasonh/csvstruct synced 2026-07-07 02:32:20 +00:00
Commit graph

20 commits

Author SHA1 Message Date
ccd21804a5 Clean up tests, account for pre-1.4 csv encoding with a const bool 2014-12-22 17:57:10 -05:00
c875d4a356 support pointer fields during encoding 2014-12-21 00:15:59 -05:00
77bbf2a2c7 test encoding IPs in maps 2014-12-20 23:19:02 -05:00
e63cd568bf forget about time, time sucks 2014-12-20 23:10:34 -05:00
21202fd69f don't encode a specific timezone into tests 2014-12-20 23:06:27 -05:00
425fe16c28 Support types implementing TextMarshaler and TextUnmarshaler 2014-12-20 22:50:36 -05:00
10620c30fb Update travis to go 1.4
The main difference seems to be the inclusion of
6ad2749dcd
which changes how empty strings are handled. They're just omitted now,
instead of being ""s
2014-12-19 15:28:41 -05:00
5dcdc4db0d remove New...Opts methods, move opts to a chainable method, much nicer 2014-12-19 14:35:00 -05:00
b1d5a08042 rename IgnoreHeader to SkipHeader 2014-07-17 18:22:24 -04:00
794e5ff318 more Encode tests, clean up Encode code a little 2014-07-17 17:59:43 -04:00
d99f134dc8 support EncodeNext for maps 2014-07-17 16:32:23 -04:00
416b788fcd Add EncodeOpts to specify options when encoding 2014-07-17 13:52:09 -04:00
19fdf48738 fix bug where '-' ignored fields would panic if they weren't declared last 2014-07-15 16:31:31 -04:00
5b2030e805 Some more test cases 2014-06-18 12:10:56 -04:00
464de93390 handle unencodeable header rows 2014-05-16 11:55:14 -04:00
3fca81df92 refactor encode_test.go to use one table-driven test 2014-05-16 11:16:32 -04:00
845244a1e7 require struct in EncodeNext, inline in tests, remove row rightsizing hack 2014-05-15 15:35:16 -04:00
4ef24bfd38 more tests, handle unexported and tagged fields moar better 2014-05-15 14:56:55 -04:00
56e5f3185f fix encode, need to call Flush 2014-05-15 14:03:35 -04:00
6c63e469f5 begin encoding, tests fail/skipped currently 2014-05-15 13:40:50 -04:00