v0.0.630
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m24s
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m24s
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
package excelbuilder
|
package excelext
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
@@ -78,7 +78,7 @@ func (em *ExcelMapper[T]) InitNewFile(sheetName string) (*excelize.File, error)
|
|||||||
|
|
||||||
func (em *ExcelMapper[T]) InitStyles(f *excelize.File) error {
|
func (em *ExcelMapper[T]) InitStyles(f *excelize.File) error {
|
||||||
styleDate, err := f.NewStyle(&excelize.Style{
|
styleDate, err := f.NewStyle(&excelize.Style{
|
||||||
CustomNumFmt: new("dd.mm.yyyy"),
|
CustomNumFmt: langext.Ptr("dd.mm.yyyy"),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
26
excelext/utils.go
Normal file
26
excelext/utils.go
Normal 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()
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.629"
|
const GoextVersion = "0.0.630"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2026-03-14T14:09:13+0100"
|
const GoextVersionTimestamp = "2026-03-14T14:10:09+0100"
|
||||||
|
|||||||
Reference in New Issue
Block a user