From 3a47c8d59399efec52f1f021f7bf4efe66ebf8f3 Mon Sep 17 00:00:00 2001 From: Springcomp Date: Tue, 21 Mar 2023 11:28:14 +0100 Subject: [PATCH] Made EnableColor function private. --- jp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jp.go b/jp.go index 5bff538..a748532 100644 --- a/jp.go +++ b/jp.go @@ -84,11 +84,11 @@ func runMain(c *cli.Context) int { // colors. switch c.String("color") { case "always": - EnableColor(true) + enableColor(true) case "auto": // this is the default in the library case "never": - EnableColor(false) + enableColor(false) default: return errMsg("Invalid color specification. Must use always/auto/never") } @@ -149,7 +149,7 @@ func runMain(c *cli.Context) int { return 0 } -func EnableColor(enabled bool) { +func enableColor(enabled bool) { if enabled { jsoncolor.DefaultArrayColor.EnableColor()