Created
October 4, 2021 07:50
-
-
Save kabece/0eac15371b49a865a81f8288432e15d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment