From 5907d961764880e0bca879f194a997e4a805dabf Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 23 Dec 2021 16:25:53 +0100 Subject: [PATCH] src/eosapi/functions.go: import jsontime with a more descriptive name than "v2" --- src/eosapi/functions.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/eosapi/functions.go b/src/eosapi/functions.go index 02558dc..5b26d9c 100644 --- a/src/eosapi/functions.go +++ b/src/eosapi/functions.go @@ -7,7 +7,7 @@ import ( "net/url" "io/ioutil" "github.com/imroc/req" - "github.com/liamylian/jsontime/v2" + jsontime "github.com/liamylian/jsontime/v2" ) type ReqParams struct { @@ -15,12 +15,12 @@ type ReqParams struct { Host string } -var json = v2.ConfigWithCustomTimeFormat +var json = jsontime.ConfigWithCustomTimeFormat func init() { // EOS Api does not specify timezone in timestamps (they are always UTC tho). - v2.SetDefaultTimeFormat("2006-01-02T15:04:05", time.UTC) + jsontime.SetDefaultTimeFormat("2006-01-02T15:04:05", time.UTC) } func send(p ReqParams, method string, path string) (*req.Resp, error) {