diff options
author | xuri <xuri.me@gmail.com> | 2022-09-18 00:07:15 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-09-18 00:07:15 +0800 |
commit | 3f702999e6bba26afbd2a259f6849e536042ec2e (patch) | |
tree | 4bfbbb9c1f01c52bcb9ffedac6ba9190650470cf /xmlApp.go | |
parent | 73cc4bd44933994ffa8efad9c3e05fe7cb826b49 (diff) |
Using the specialized name in a variable and making comments clear
- Add JSON tags for `AppProperties`, `PivotTableOption` and `PivotTableField` structure
Diffstat (limited to 'xmlApp.go')
-rw-r--r-- | xmlApp.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -15,13 +15,13 @@ import "encoding/xml" // AppProperties directly maps the document application properties. type AppProperties struct { - Application string - ScaleCrop bool - DocSecurity int - Company string - LinksUpToDate bool - HyperlinksChanged bool - AppVersion string + Application string `json:"application"` + ScaleCrop bool `json:"scale_crop"` + DocSecurity int `json:"doc_security"` + Company string `json:"company"` + LinksUpToDate bool `json:"links_up_to_date"` + HyperlinksChanged bool `json:"hyperlinks_changed"` + AppVersion string `json:"app_version"` } // xlsxProperties specifies to an OOXML document properties such as the |