Skip to content

Instantly share code, notes, and snippets.

View kabece's full-sized avatar

Chris Czurylo kabece

View GitHub Profile
func (r *queryResolver) ChatRoom(ctx context.Context, id string) (*model.ChatRoom, error) {
if t, ok := r.ChatRooms[id]; ok {
return &t, nil
}
return nil, errors.New("chat room not found")
}