Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m24s
27 lines
440 B
Go
27 lines
440 B
Go
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()
|
|
}
|