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:
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()
|
||||
}
|
||||
Reference in New Issue
Block a user