From 1d5b53abf8da7b00ac1e58d43a30f738c157b9d3 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 19 Aug 2019 19:11:32 +0100 Subject: chore(tools/blog_cli): Shorten metadata key names Every character counts because I want to keep metadata below 255 bytes. --- tools/blog_cli/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/blog_cli') diff --git a/tools/blog_cli/main.go b/tools/blog_cli/main.go index 9175b2b66f..76e4bde8ef 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 { -- cgit 1.4.1