You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 23, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,7 @@ NOTE: **The `exprName` under the same struct field cannot be the same!**
139
139
|`regexp('^\\w*$', (X)$)`|Regular match the struct field X, return boolean|
140
140
|`regexp('^\\w*$')`|Regular match the current struct field, return boolean|
141
141
|`sprintf('X value: %v', (X)$)`|`fmt.Sprintf`, format the value of struct field X|
142
+
|`range(KvExpr, forEachExpr)`|Iterate over an array, slice, or dictionary <br> - `#k` is the element key var <br> - `#v` is the element value var <br> - `##` is the number of elements <br> - e.g. [example](spec_range_test.go)|
142
143
143
144
<!-- |`(X)$k`|Traverse each element key of the struct field X(type: map, slice, array)|
144
145
|`(X)$v`|Traverse each element value of the struct field X(type: map, slice, array)| -->
0 commit comments