move json method
This commit is contained in:
parent
4b073d2cd5
commit
d873fce12a
@ -1,13 +1,11 @@
|
|||||||
package sessionUtils
|
package sessionUtils
|
||||||
|
|
||||||
import "encoding/json"
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
)
|
||||||
|
|
||||||
func ConvertServerSessionsToJSON(s Session) []byte {
|
func ConvertServerSessionsToJSON(s Session) []byte {
|
||||||
s_json, err := json.Marshal(s)
|
s_json, err := json.Marshal(s)
|
||||||
_ = err //TODO: Check Errors
|
_ = err //TODO: Check Errors
|
||||||
return s_json
|
return s_json
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetJSSessionInterface(s Session) JSSessionInterface {
|
|
||||||
return JSSessionInterface{}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user