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

64 commits

Author SHA1 Message Date
Jason Hall
551735f562
Create dependabot.yml 2023-09-30 19:56:09 -04:00
Jason Hall
58da7f0b7b
Merge pull request #5 from imjasonh/update
update to use Go module and GitHub Actions
2023-09-30 19:51:57 -04:00
Jason Hall
0d469dc0aa
update to use Go module and GitHub Actions
Signed-off-by: Jason Hall <jason@chainguard.dev>
2023-09-30 19:50:13 -04:00
cb8ca483d3 gofmt -s 2015-03-23 11:11:25 -04:00
ccd21804a5 Clean up tests, account for pre-1.4 csv encoding with a const bool 2014-12-22 17:57:10 -05:00
731c8af66a fix bug with decoding with tag names and omitempty 2014-12-22 17:00:56 -05:00
df50f1e0f5 Support pointers in decoding
- support omitempty tag for pointer fields
- s/out/got/g
- s/exp/want/g
2014-12-22 16:50:22 -05:00
c875d4a356 support pointer fields during encoding 2014-12-21 00:15:59 -05:00
8db223d89f s/DecoderOpts/DecodeOpts/g 2014-12-21 00:04:25 -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
288d5a0e85 fix travis notifications 2014-09-24 13:41:59 -04:00
f70558148d update travis build to 1.3 2014-09-16 17:16:57 -04:00
e9c8fc0aa5 Add benchmarks for encoding too, while we're at it 2014-09-16 17:06:11 -04:00
9e5a7c13f5 Add benchmarks in preparation for performance improvements 2014-09-16 16:16:58 -04:00
b1d5a08042 rename IgnoreHeader to SkipHeader 2014-07-17 18:22:24 -04:00
8191e4e833 remove TODO 2014-07-17 18:18:48 -04:00
51fb9f87d2 clean up Decode a little 2014-07-17 18:18:13 -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
d5bcadb070 remove SkipLeadingRows (it was dumb) 2014-07-17 16:05:18 -04:00
06b9401386 begin support for maps 2014-07-17 15:49:10 -04:00
6014af3cde Add DecoderOpts to specify options when decoding 2014-07-17 14:15:40 -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
1be2e9907b Document DecodeNext/EncodeNext, and fix a bug found by go vet 2014-06-18 11:50:21 -04:00
e4c37f5248 Update README.md 2014-06-16 22:39:33 -04:00
2236b60652 don't use DeepEqual to compare two structs 2014-05-16 15:25:50 -04:00
3a20da2940 add roundtrip test, update readme 2014-05-16 15:20:07 -04:00
56838d64f2 update travis email notification settings 2014-05-16 13:16:02 -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
eefca89069 Merge branch 'master' of https://github.com/ImJasonH/csvstruct 2014-05-15 16:01:02 -04:00
0ffc910668 Update README.md 2014-05-15 16:00:47 -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
f5a423c821 add godoc 2014-05-15 13:44:46 -04:00
46201aaf1f rename to decode.go 2014-05-15 13:41:24 -04:00
6c63e469f5 begin encoding, tests fail/skipped currently 2014-05-15 13:40:50 -04:00
2731c3991a support DecodeNext(nil) to skip a line 2014-05-15 12:55:24 -04:00
905ef96dff don't send email 2014-05-15 12:33:15 -04:00
fa178edcf9 add example 2014-05-15 12:31:56 -04:00
f12bbf25ba add build badge 2014-05-15 12:21:35 -04:00
9d07ca61c9 support uints 2014-05-15 12:20:41 -04:00