Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问给出的server_db_example_new里为什么用两个map保存User #112

Closed
jjjjilyf opened this issue Aug 16, 2018 · 2 comments
Closed

Comments

@jjjjilyf
Copy link

accIDUsers = make(map[string]*User)
users = make(map[int]*User)

@name5566
Copy link
Owner

方便通过账号 ID 和用户 ID 找到用户。有一些游戏,对此有需求,可以按实际情况修改。

@jjjjilyf
Copy link
Author

好的 谢谢回答

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants