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

Add 32bit numeric getters which do not panic #77

Merged
merged 1 commit into from
Dec 8, 2024
Merged

Conversation

magiconair
Copy link
Owner

Add GetInt32, GetUint32 and GetFloat32 which return the default value when the key value is out of range just like their 64bit variants.

The generic GetInt, GetUint and GetFloat methods panic.

Closes #75

Add GetInt32, GetUint32 and GetFloat32 which return the default value
when the key value is out of range just like their 64bit variants.

The generic GetInt, GetUint and GetFloat methods panic.

Closes #75
@magiconair magiconair added this to the 1.9.0 milestone Dec 8, 2024
@magiconair magiconair merged commit 3dfc3b5 into main Dec 8, 2024
12 checks passed
@magiconair magiconair deleted the get32bit branch December 8, 2024 12:57
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.

GetInt should return default val instead of panic
1 participant