From d873fce12a665cfa9390dc6f6c995c8a29788e49 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Fri, 28 Oct 2022 18:23:14 +0300 Subject: [PATCH] move json method --- sessionUtils/sessionUtils.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sessionUtils/sessionUtils.go b/sessionUtils/sessionUtils.go index 5d62800..3a99332 100644 --- a/sessionUtils/sessionUtils.go +++ b/sessionUtils/sessionUtils.go @@ -1,13 +1,11 @@ package sessionUtils -import "encoding/json" +import ( + "encoding/json" +) func ConvertServerSessionsToJSON(s Session) []byte { s_json, err := json.Marshal(s) _ = err //TODO: Check Errors return s_json } - -func GetJSSessionInterface(s Session) JSSessionInterface { - return JSSessionInterface{} -}