summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2018-07-13 17:40:47 +0800
committerxuri <xuri.me@gmail.com>2018-07-13 17:40:47 +0800
commit79dfe1c3070b3c4af14a40acaa5bd8cb477acd3e (patch)
tree6f980b68b9b2ac097f4d3a7e2f6cb3d7be756c6a /lib.go
parent58a7b23d11ef36156af6f694a1753715df8ae2fc (diff)
GoDoc updated.
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib.go b/lib.go
index 4379be4..e1b0693 100644
--- a/lib.go
+++ b/lib.go
@@ -164,3 +164,12 @@ func getCellColRow(cell string) (col, row string) {
return cell, ""
}
+
+// parseFormatSet provides a method to convert format string to []byte and
+// handle empty string.
+func parseFormatSet(formatSet string) []byte {
+ if formatSet != "" {
+ return []byte(formatSet)
+ }
+ return []byte("{}")
+}