From f86fa993169c438d35075cb1e4a5bb4ebf050674 Mon Sep 17 00:00:00 2001 From: cbrom Date: Sat, 25 Nov 2023 00:59:45 +0300 Subject: [PATCH] reverted core/cautils/getter/json.go file, as the json and init of json is necessary Signed-off-by: cbrom --- core/cautils/getter/json.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 core/cautils/getter/json.go diff --git a/core/cautils/getter/json.go b/core/cautils/getter/json.go new file mode 100644 index 00000000..4aab97b4 --- /dev/null +++ b/core/cautils/getter/json.go @@ -0,0 +1,13 @@ +package getter + +import ( + jsoniter "github.com/json-iterator/go" +) + +var json jsoniter.API + +func init() { + // NOTE(fredbi): attention, this configuration rounds floats down to 6 digits + // For finer-grained config, see: https://pkg.go.dev/github.com/json-iterator/go#section-readme + json = jsoniter.ConfigFastest +}