Compare commits

..

2 Commits

Author SHA1 Message Date
Mikescher 63c28b4141 v0.0.631
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m0s
2026-03-14 15:14:38 +01:00
Mikescher b01e659bb4 v0.0.630
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m24s
2026-03-14 14:10:09 +01:00
3 changed files with 36 additions and 4 deletions
+8 -2
View File
@@ -1,4 +1,4 @@
package excelbuilder
package excelext
import (
"reflect"
@@ -78,7 +78,7 @@ func (em *ExcelMapper[T]) InitNewFile(sheetName string) (*excelize.File, error)
func (em *ExcelMapper[T]) InitStyles(f *excelize.File) error {
styleDate, err := f.NewStyle(&excelize.Style{
CustomNumFmt: new("dd.mm.yyyy"),
CustomNumFmt: langext.Ptr("dd.mm.yyyy"),
})
if err != nil {
return err
@@ -286,6 +286,12 @@ func (em *ExcelMapper[T]) BuildSingleSheet(f *excelize.File, sheetName string, d
iRow++
}
//for i, col := range em.colDefinitions {
// if col.width == nil {
// //TODO https://github.com/qax-os/excelize/pull/1386
// }
//}
return nil
}
+26
View File
@@ -0,0 +1,26 @@
package excelext
import (
"strconv"
"git.blackforestbytes.com/BlackForestBytes/goext/rfctime"
"github.com/360EntSecGroup-Skylar/excelize"
)
func c(row int, col int) string {
return excelize.ToAlphaString(col) + strconv.Itoa(row)
}
func excelizeOptTime(t *rfctime.RFC3339NanoTime) any {
if t == nil {
return ""
}
return t.Time()
}
func excelizeOptDate(t *rfctime.Date) any {
if t == nil {
return ""
}
return t.TimeUTC()
}
+2 -2
View File
@@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.629"
const GoextVersion = "0.0.631"
const GoextVersionTimestamp = "2026-03-14T14:09:13+0100"
const GoextVersionTimestamp = "2026-03-14T15:14:38+0100"