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. 28 12月, 2019 1 次提交
  3. 25 12月, 2019 1 次提交
  4. 24 12月, 2019 1 次提交
  5. 23 12月, 2019 1 次提交
  6. 22 12月, 2019 1 次提交
  7. 20 12月, 2019 3 次提交
  8. 16 12月, 2019 1 次提交
  9. 15 12月, 2019 1 次提交
  10. 14 12月, 2019 1 次提交
  11. 13 12月, 2019 1 次提交
  12. 11 12月, 2019 1 次提交
  13. 10 12月, 2019 1 次提交
  14. 02 12月, 2019 1 次提交
  15. 30 11月, 2019 1 次提交
  16. 28 11月, 2019 1 次提交
  17. 23 11月, 2019 1 次提交
  18. 10 11月, 2019 1 次提交
  19. 05 11月, 2019 1 次提交
    • H
      Reduce allocations when writing · bf9a8355
      Harris 提交于
      Fix #494
      
      If a row is full, don't bother allocating a new one, just return it.
      
      Use the last populated row as a hint for the size of new rows.
      
      Simplify checkSheet to remove row map
      bf9a8355
  20. 27 10月, 2019 1 次提交
  21. 26 10月, 2019 1 次提交
  22. 24 10月, 2019 2 次提交
  23. 23 10月, 2019 1 次提交
  24. 21 10月, 2019 1 次提交
  25. 18 10月, 2019 1 次提交
  26. 17 10月, 2019 1 次提交
  27. 15 10月, 2019 1 次提交
  28. 10 10月, 2019 2 次提交
  29. 30 9月, 2019 2 次提交
  30. 26 9月, 2019 1 次提交
  31. 25 9月, 2019 1 次提交
  32. 24 9月, 2019 1 次提交
  33. 23 9月, 2019 1 次提交
  34. 22 9月, 2019 1 次提交
    • C
      Allow access to more formula attributes in SetCellFormula (#484) · 3280e1b6
      Christian Fiedler 提交于
      * Allow access to more formula attributes in SetCellFormula
      
      Make SetCellFormula variadic to not break API.
      The new arguments are option arguments in which the type of
      the formula and the ref attribute may be set.
      These need to be set for an array formula to work.
      
      * Add TestWriteArrayFormula to test optional parameters of SetCellFormula
      
      TestWriteArrayFormula writes a document to the test directory that
      contains array formulas that are used to calculate standard deviations.
      The file also contains values calculated by the Go testcase, so the
      results can be verified. It should be tested, if the array formula
      works (i.e. shows a number, not an error) and that the values calculated
      by the formula and those calculated by Go are the same.
      3280e1b6