Skip to content
Permalink
Branch: master
Commits on Jul 14, 2019
  1. Add example for nested structs

    jszwec committed Jul 14, 2019
Commits on May 8, 2019
  1. Add slice and map fields example

    jszwec committed May 8, 2019
Commits on Mar 10, 2019
  1. Merge pull request #10 from eduardev/patch-1

    jszwec committed Mar 10, 2019
    Update README.md
Commits on Feb 27, 2019
  1. Update .travis.yml

    jszwec committed Feb 27, 2019
Commits on Jan 4, 2019
  1. Update github pages config

    jszwec committed Jan 4, 2019
  2. Update README

    jszwec committed Jan 4, 2019
  3. Set theme jekyll-theme-cayman

    jszwec committed Jan 4, 2019
Commits on Dec 29, 2018
  1. Reduce decoder allocations

    jszwec committed Dec 29, 2018
    Decoder will now reuse (u)int and float decoding functions instead of
    allocating them per each field in the struct
Commits on Sep 23, 2018
  1. Refactor encoders to use byte slice directly

    jszwec committed Sep 11, 2018
    benchmark                                             old ns/op     new ns/op     delta
    BenchmarkMarshal/csvutil.Marshal/1_record-8           5806          6542          +12.68%
    BenchmarkMarshal/csvutil.Marshal/10_records-8         20922         21458         +2.56%
    BenchmarkMarshal/csvutil.Marshal/100_records-8        177337        167195        -5.72%
    BenchmarkMarshal/csvutil.Marshal/1000_records-8       1695436       1619843       -4.46%
    BenchmarkMarshal/csvutil.Marshal/10000_records-8      16841629      16190060      -3.87%
    BenchmarkMarshal/csvutil.Marshal/100000_records-8     172439027     163375841     -5.26%
Commits on Sep 9, 2018
  1. Adjust for Go1.11

    jszwec committed Sep 9, 2018
Commits on Jul 31, 2018
  1. Fix Header and EncodeHeader type recognition

    jszwec committed Jul 31, 2018
    Type was incorrectly recognized in cases where value was
    wrapped in additional interfaces
Commits on Jul 30, 2018
  1. Cleanup Encoder's internal code

    jszwec committed Jul 30, 2018
  2. Add go.mod file

    jszwec committed Jul 30, 2018
  3. Add examples for time.Time

    jszwec committed Jul 30, 2018
Commits on Jul 29, 2018
  1. Decode into interface fields that are initialized pointers

    jszwec committed Jul 25, 2018
    Decoder can now handle interface fields in a correct way.
    If an interface field was initialized with a settable pointer value
    it will try to decode into that type instead of setting the interface
    to string. Nil interface, or interface with a non pointer value, is still
    being decoded to string.
Commits on Jul 21, 2018
  1. Update README

    jszwec committed Jul 21, 2018
Commits on May 31, 2018
  1. Simplify decoders logic and add more tests for Decode inputs

    jszwec committed May 29, 2018
Commits on May 28, 2018
  1. Improve decoder code

    jszwec committed May 28, 2018
    - decoder now stores its own copy of a header slice
    - change the way how Unused slice is evaluated (performance)
    - move decoder's cache code to fields method from unmarshalStruct
Commits on May 23, 2018
  1. Add Map function to the Decoder

    jszwec committed May 20, 2018
    Closes: #1
Commits on Apr 14, 2018
  1. Add support for Go1.7 onwards

    jszwec committed Apr 11, 2018
Commits on Apr 1, 2018
  1. Add AutoHeader field to Encoder

    jszwec committed Apr 1, 2018
  2. Update errors documentation

    jszwec committed Apr 1, 2018
  3. Add documentation and tests for NaN values

    jszwec committed Apr 1, 2018
Commits on Feb 24, 2018
  1. Update travis to use strings in go versions

    jszwec committed Feb 24, 2018
Commits on Feb 18, 2018
  1. Update travis

    jszwec committed Feb 18, 2018
  2. Adjust for Go 1.10

    jszwec committed Feb 18, 2018
    - return error when trying to decode nil pointer to unexported embedded type
    - update expected test values for Go 1.10
    - rerun benchmarks and update them in readme
    - update travis and appveyor
Commits on Feb 6, 2018
  1. Update examples in godoc

    jszwec committed Feb 6, 2018
Commits on Feb 5, 2018
  1. Add EncodeHeader method to Encoder

    jszwec committed Feb 5, 2018
Commits on Jan 30, 2018
  1. Add pull request template

    jszwec committed Jan 30, 2018
Commits on Jan 25, 2018
  1. Add Header function

    jszwec committed Jan 25, 2018
Commits on Jan 4, 2018
  1. Fix Marshal and Encode panic on nil values

    jszwec committed Jan 4, 2018
    - Marshal now returns 'csvutil: Marshal(nil)' error if provided value is nil
    - Encoder.Encode now returns 'csvutil: Encode(nil)' error if provided value is nil
    - replaced encoder's internal map cache with field slice
    - improved encoder's performance
    
    benchmark                                             old ns/op     new ns/op     delta
    BenchmarkMarshal/csvutil.Marshal/1_record-8           5883          5431          -7.68%
    BenchmarkMarshal/csvutil.Marshal/10_records-8         21989         20733         -5.71%
    BenchmarkMarshal/csvutil.Marshal/100_records-8        185103        180048        -2.73%
    BenchmarkMarshal/csvutil.Marshal/1000_records-8       1794334       1725834       -3.82%
    BenchmarkMarshal/csvutil.Marshal/10000_records-8      17769520      16992801      -4.37%
    BenchmarkMarshal/csvutil.Marshal/100000_records-8     184746178     174247813     -5.68%
Commits on Jan 3, 2018
  1. Improve Decoder's performance

    jszwec committed Jan 3, 2018
    - replace decoder's internal map cache with field slice
    - internal 'used' slice should be evaluated during struct scanning
    
    benchmark                                                 old ns/op     new ns/op     delta
    BenchmarkUnmarshal/csvutil.Unmarshal/1_record-8           6414          6117          -4.63%
    BenchmarkUnmarshal/csvutil.Unmarshal/10_records-8         18021         17284         -4.09%
    BenchmarkUnmarshal/csvutil.Unmarshal/100_records-8        134272        128178        -4.54%
    BenchmarkUnmarshal/csvutil.Unmarshal/1000_records-8       1284881       1238115       -3.64%
    BenchmarkUnmarshal/csvutil.Unmarshal/10000_records-8      12805520      12459734      -2.70%
    BenchmarkUnmarshal/csvutil.Unmarshal/100000_records-8     136793465     126875306     -7.25%
Older
You can’t perform that action at this time.