extrame / xls

Pure Golang xls library
Apache License 2.0
329 stars 207 forks source link

format key might not right, so need check if the key is exist #87

Open liuguodong15 opened 2 years ago

liuguodong15 commented 2 years ago
                            /*
                                func (c *NumberCol) String(wb *WorkBook) []string {
                                    if fNo := wb.Xfs[c.Index].formatNo(); fNo != 0 {
                                        t := timeFromExcelTime(c.Float, wb.dateMode == 1)
                                        if value,ok:=wb.Formats[fNo];ok{
                                            return []string{yymmdd.Format(t, value.str)}
                                        }else {
                                            return []string{strconv.FormatFloat(c.Float, 'f', -1, 64)}
                                        }
                                    }
                                    return []string{strconv.FormatFloat(c.Float, 'f', -1, 64)}
                                }
                            */
                            col := row.Col(j) //has something wrong, need change above function in file col.go
liuguodong15 commented 2 years ago
image