mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-10 06:42:36 +02:00
Go generics and changes in v1.18 (#5)
* ArrayIn to use generics. * interface{} -> any.
This commit is contained in:
parent
c725e96c90
commit
babddacbf3
26 changed files with 100 additions and 110 deletions
|
@ -13,7 +13,7 @@ func (h *MessageHandlerCtx) SessionCreated(session types.Session) error {
|
|||
ID: session.ID(),
|
||||
Profile: session.Profile(),
|
||||
State: session.State(),
|
||||
}, nil)
|
||||
})
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ func (h *MessageHandlerCtx) SessionDeleted(session types.Session) error {
|
|||
event.SESSION_DELETED,
|
||||
message.SessionID{
|
||||
ID: session.ID(),
|
||||
}, nil)
|
||||
})
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ func (h *MessageHandlerCtx) SessionProfileChanged(session types.Session) error {
|
|||
message.MemberProfile{
|
||||
ID: session.ID(),
|
||||
MemberProfile: session.Profile(),
|
||||
}, nil)
|
||||
})
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ func (h *MessageHandlerCtx) SessionStateChanged(session types.Session) error {
|
|||
message.SessionState{
|
||||
ID: session.ID(),
|
||||
SessionState: session.State(),
|
||||
}, nil)
|
||||
})
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue