summaryrefslogtreecommitdiff
path: root/xmlWorksheet.go
diff options
context:
space:
mode:
authorchenliu1993 <13630583107@163.com>2022-08-27 00:45:46 +0800
committerGitHub <noreply@github.com>2022-08-27 00:45:46 +0800
commitf8667386dcde788d8232b652ac85a138c0d20bf3 (patch)
tree650a48ee145cf0d559fffb7c123b4bf153e9d9e3 /xmlWorksheet.go
parent0e9378fec2ab4ba60ed284db4383df86555076d1 (diff)
This closes #827, add new functions `GetDataValidations` and `GetConditionalFormats` (#1315)
Signed-off-by: chenliu1993 <13630583107@163.com>
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r--xmlWorksheet.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go
index 3b9caac..af7c4f3 100644
--- a/xmlWorksheet.go
+++ b/xmlWorksheet.go
@@ -826,10 +826,10 @@ type formatPanes struct {
// formatConditional directly maps the conditional format settings of the cells.
type formatConditional struct {
Type string `json:"type"`
- AboveAverage bool `json:"above_average"`
- Percent bool `json:"percent"`
- Format int `json:"format"`
- Criteria string `json:"criteria"`
+ AboveAverage bool `json:"above_average,omitempty"`
+ Percent bool `json:"percent,omitempty"`
+ Format int `json:"format,omitempty"`
+ Criteria string `json:"criteria,omitempty"`
Value string `json:"value,omitempty"`
Minimum string `json:"minimum,omitempty"`
Maximum string `json:"maximum,omitempty"`