From f5ce5468a8e83320b90a0fe2c50930a15023a3d6 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Fri, 4 Nov 2022 03:03:05 +0300 Subject: [PATCH] merge session utils --- sessionUtils/sessionUtils.go | 52 +++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/sessionUtils/sessionUtils.go b/sessionUtils/sessionUtils.go index 8b4b4f8..a5c78f0 100644 --- a/sessionUtils/sessionUtils.go +++ b/sessionUtils/sessionUtils.go @@ -13,32 +13,34 @@ func ConvertServerSessionsToJSON(s Session) []byte { return s_json } -var FakeSessions = []Session{ - { - GameId: "garrysmod", - Icon: "", - Title: "Regular Skirda Gmod server", - Status: "Super fake session", - Version: "", - Expires: time.Time{}, - Arguments: []gameUtils.Argument{ - { - Body: "+connect", - Value: "127.0.0.1:27015", +var FakeSessions = Sessions{ + Sessions: []Session{ + { + GameId: "garrysmod", + Icon: "", + Title: "Regular Skirda Gmod server", + Status: "Super fake session", + Version: "", + Expires: time.Time{}, + Arguments: []gameUtils.Argument{ + { + Body: "+connect", + Value: "127.0.0.1:27015", + }, }, }, - }, - { - GameId: "half-lide-1", - Title: "Half-Life 1 МЯСО", - Status: "Retro shit", - Expires: time.Time{}, - }, - { - GameId: "minecraft", - Title: "Test 3", - Status: "Testing session", - Version: "1.54.7", - Expires: time.Time{}, + { + GameId: "half-lide-1", + Title: "Half-Life 1 МЯСО", + Status: "Retro shit", + Expires: time.Time{}, + }, + { + GameId: "minecraft", + Title: "Test 3", + Status: "Testing session", + Version: "1.54.7", + Expires: time.Time{}, + }, }, }