summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-08-19T18·11+0100
committerVincent Ambo <tazjin@google.com>2019-08-19T18·11+0100
commit1d5b53abf8da7b00ac1e58d43a30f738c157b9d3 (patch)
tree149d2838cabb33fce1422972bd9dcd9c10242ad9
parentd5710db90060a23f0069d1f8a910f7bae83f8678 (diff)
chore(tools/blog_cli): Shorten metadata key names r/43
Every character counts because I want to keep metadata below 255
bytes.
-rw-r--r--tools/blog_cli/main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/blog_cli/main.go b/tools/blog_cli/main.go
index 9175b2b66f86..76e4bde8efa4 100644
--- a/tools/blog_cli/main.go
+++ b/tools/blog_cli/main.go
@@ -33,14 +33,14 @@ var (
 var chunkSize = 200
 
 type metadata struct {
-	Chunks int       `json:"chunks"`
-	Title  string    `json:"title"`
-	Date   time.Time `json:"date"`
+	Chunks int       `json:"c"`
+	Title  string    `json:"t"`
+	Date   time.Time `json:"d"`
 }
 
 type chunk struct {
-	Chunk int    `json:"c"`
-	Text  string `json:"t"`
+	Chunk int
+	Text  string
 }
 
 type post struct {