1. 29 12月, 2019 2 次提交
    • xurime's avatar
      Improve code coverage unit tests · 09485b3f
      xurime 提交于
      09485b3f
    • C
      Stream to Excel table (#530) · 5c87effc
      Cameron Howey 提交于
      * Support all datatypes for StreamWriter
      
      * Support setting styles with StreamWriter
      
      **NOTE:** This is a breaking change. Values are now explicitly
      passed as a []interface{} for simplicity. We also let styles to be
      set at the same time.
      
      * Create function to write stream into a table
      
      * Write rows directly to buffer
      
      Avoiding the xml.Encoder makes the streamer faster and use less
      memory.
      
      Using the included benchmark, the results went from:
      
      > BenchmarkStreamWriter-4   514  2576155 ns/op  454918 B/op  6592 allocs/op
      
      down to:
      
      > BenchmarkStreamWriter-4  1614   777480 ns/op  147608 B/op  5570 allocs/op
      
      * Use AddTable instead of SetTable
      
      This requires reading the cells after they have been written,
      which requires additional structure for the temp file.
      
      As a bonus, we now efficiently allocate only one buffer when
      reading the file back into memory, using the same approach
      as ioutil.ReadFile.
      
      * Use an exported Cell type to handle inline styles for StreamWriter
      5c87effc
  2. 24 12月, 2019 1 次提交
  3. 16 12月, 2019 1 次提交
  4. 10 12月, 2019 1 次提交