doc: update doc for GetOrDefault

This commit is contained in:
dudaodong committed 2024-09-10 15:54:54 +08:00
commit 8869e0440d
6 files changed
+116 -2

No files matched your search

+3
View File
@@ -1016,6 +1016,9 @@ import "github.com/duke-git/lancet/v2/maputil"
- **<big>SortByKey</big>** : sorts the map by its keys and returns a new map with sorted keys.
[[doc](https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/maputil.md#SortByKey)]
[[play](todo)]
- **<big>GetOrDefault</big>** : returns the value of the given key or a default value if the key is not present.
[[doc](https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/maputil.md#GetOrDefault)]
[[play](todo)]
<h3 id="mathutil"> 13. Mathutil package implements some functions for math calculation. &nbsp; &nbsp; &nbsp; &nbsp;<a href="#index">index</a></h3>