From 4a1e3aa8b75a3a91564af7f6852f43639a10dd40 Mon Sep 17 00:00:00 2001 From: thinkerou Date: Fri, 14 Sep 2018 10:35:19 +0800 Subject: [PATCH] fix format style --- internal/json/json.go | 6 +++--- internal/json/jsoniter.go | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/json/json.go b/internal/json/json.go index 467dfd07..419d35f2 100644 --- a/internal/json/json.go +++ b/internal/json/json.go @@ -10,11 +10,11 @@ import "encoding/json" var ( // Marshal is exported by gin/json package. - Marshal = json.Marshal + Marshal = json.Marshal // MarshalIndent is exported by gin/json package. MarshalIndent = json.MarshalIndent // NewDecoder is exported by gin/json package. - NewDecoder = json.NewDecoder + NewDecoder = json.NewDecoder // NewEncoder is exported by gin/json package. - NewEncoder = json.NewEncoder + NewEncoder = json.NewEncoder ) diff --git a/internal/json/jsoniter.go b/internal/json/jsoniter.go index a6507286..2021c53c 100644 --- a/internal/json/jsoniter.go +++ b/internal/json/jsoniter.go @@ -9,13 +9,13 @@ package json import "github.com/json-iterator/go" var ( - json = jsoniter.ConfigCompatibleWithStandardLibrary + json = jsoniter.ConfigCompatibleWithStandardLibrary // Marshal is exported by gin/json package. - Marshal = json.Marshal + Marshal = json.Marshal // MarshalIndent is exported by gin/json package. MarshalIndent = json.MarshalIndent // NewDecoder is exported by gin/json package. - NewDecoder = json.NewDecoder + NewDecoder = json.NewDecoder // NewEncoder is exported by gin/json package. - NewEncoder = json.NewEncoder + NewEncoder = json.NewEncoder )