From a924ef7d3a4e747fd372150abc5b19290056135b Mon Sep 17 00:00:00 2001 From: SimFG Date: Tue, 23 Aug 2022 11:29:21 +0800 Subject: [PATCH] Fix output error at beginning of `analysis.txt` file when executing the `look` cmd --- cmd/look_cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/look_cmd.go b/cmd/look_cmd.go index 01ec462..42e8c63 100644 --- a/cmd/look_cmd.go +++ b/cmd/look_cmd.go @@ -103,7 +103,7 @@ func appendBuffer(resp *clientv3.GetResponse, datac <-chan []*mvccpb.KeyValue, w f.Seek(0, 0) } var buffer bytes.Buffer - buffer.WriteString("\nCurrent Stage\n") + buffer.WriteString("Current Stage\n") buffer.WriteString(fmt.Sprintf(" %s", resp.Header.String())) buffer.WriteString("\nKv List\n") buffer.WriteString("| Key | Value | Size | CreateRevision | ModRevision | Version | Lease |\n")