diff options
author | xuri <xuri.me@gmail.com> | 2022-03-24 00:19:30 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-03-24 00:19:30 +0800 |
commit | 8a335225c705232fe1174755a1b1ea475456b864 (patch) | |
tree | 7bae0af1f1ce3459ad429d4fbca60a5e9b35a0e1 /styles.go | |
parent | 139ee4c4b0c86dffbdca77da346e85a4cbd97b0c (diff) |
Format code, update documentation and remove exported variable `XMLHeaderByte`
Diffstat (limited to 'styles.go')
-rw-r--r-- | styles.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2465,7 +2465,7 @@ func (f *File) GetCellStyle(sheet, axis string) (int, error) { if err != nil { return 0, err } - cellData, col, row, err := f.prepareCell(ws, sheet, axis) + cellData, col, row, err := f.prepareCell(ws, axis) if err != nil { return 0, err } @@ -2851,7 +2851,7 @@ func (f *File) SetConditionalFormat(sheet, area, formatSet string) error { if err != nil { return err } - cfRule := []*xlsxCfRule{} + var cfRule []*xlsxCfRule for p, v := range format { var vt, ct string var ok bool @@ -3052,7 +3052,7 @@ func ThemeColor(baseColor string, tint float64) string { h, s, l = RGBToHSL(uint8(r), uint8(g), uint8(b)) } if tint < 0 { - l *= (1 + tint) + l *= 1 + tint } else { l = l*(1-tint) + (1 - (1 - tint)) } |