move json method
This commit is contained in:
parent
4b073d2cd5
commit
d873fce12a
@ -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{}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user