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

feat(maputil): add GetValue #243

Merged
merged 3 commits into from
Sep 10, 2024
Merged

feat(maputil): add GetValue #243

merged 3 commits into from
Sep 10, 2024

Conversation

yunxuanhao
Copy link
Contributor

新增方法 maputil.GetValue
参考 python 中字典的 get 的使用方法,返回给定键的值,如果键不存在,则返回默认值。

@yunxuanhao yunxuanhao changed the base branch from main to rc September 10, 2024 02:37
Copy link
Owner

@duke-git duke-git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetValue名称改成GetOrDefault更合适一些

@yunxuanhao
Copy link
Contributor Author

感谢提醒,已重命名为GetOrDefault

@duke-git
Copy link
Owner

已合并

@duke-git duke-git closed this Sep 10, 2024
@duke-git duke-git reopened this Sep 10, 2024
@duke-git duke-git merged commit 69f9c74 into duke-git:rc Sep 10, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants