summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
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("{}")
+}