From 141d39054c68bce93fea944a5f5cc6255362f381 Mon Sep 17 00:00:00 2001 From: Neil O'Toole Date: Sun, 3 Oct 2021 20:58:29 -0600 Subject: [PATCH] README update --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a348f4d..e24ba67 100644 --- a/README.md +++ b/README.md @@ -89,16 +89,16 @@ similar to `jq`: // These colors largely follow jq's default colorization, // with some deviation. func DefaultColors() *Colors { -return &Colors{ -Null: Color("\x1b[2m"), -Bool: Color("\x1b[1m"), -Number: Color("\x1b[36m"), -String: Color("\x1b[32m"), -Key: Color("\x1b[34;1m"), -Bytes: Color("\x1b[2m"), -Time: Color("\x1b[32;2m"), -Punc: Color{}, // No colorization -} + return &Colors{ + Null: Color("\x1b[2m"), + Bool: Color("\x1b[1m"), + Number: Color("\x1b[36m"), + String: Color("\x1b[32m"), + Key: Color("\x1b[34;1m"), + Bytes: Color("\x1b[2m"), + Time: Color("\x1b[32;2m"), + Punc: Color{}, // No colorization + } } ``` @@ -211,6 +211,8 @@ Again, trust these benchmarks at your peril. Create your own benchmarks for your version of the `segementio` codebase. - The `segmentio` encoder (at least as of `v0.1.14`) encodes `time.Duration` as string, while `stdlib` outputs the `int64`. This package follows `stdlib`. +- The `Colors.Punc` field controls all punctuation colorization, i.e. `[]{},:"`. It is probably worthwhile to separate + these out into individually-configurable elements. ## Acknowledgments