Compare commits
3 Commits
f5ce5468a8
...
bd4d86a2df
Author | SHA1 | Date | |
---|---|---|---|
bd4d86a2df | |||
7465dd9de1 | |||
83ea88a3ab |
@ -7,6 +7,7 @@ import (
|
||||
)
|
||||
|
||||
type Session struct {
|
||||
SessionId string
|
||||
GameId string
|
||||
Icon string
|
||||
Title string
|
||||
|
@ -44,3 +44,13 @@ var FakeSessions = Sessions{
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
func FindSessionByID(sessionId string, sessions []Session) Session {
|
||||
for _, session := range sessions {
|
||||
if session.SessionId == sessionId {
|
||||
return session
|
||||
}
|
||||
}
|
||||
var temp Session = Session{}
|
||||
return temp
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user