move json method

This commit is contained in:
cyber-dream 2022-10-28 18:23:14 +03:00
parent 4b073d2cd5
commit d873fce12a

View File

@ -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{}
}