Skip to content

Commit 5a91154

Browse files
committed
Document function
1 parent d5b89d5 commit 5a91154

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/custom-api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ The following helper functions provided by Glance are available:
397397
- `sortByFloat(key string, order string, arr []JSON): []JSON`: Sorts an array of JSON objects by a float key in either ascending or descending order.
398398
- `sortByTime(key string, layout string, order string, arr []JSON): []JSON`: Sorts an array of JSON objects by a time key in either ascending or descending order. The format must be provided in Go's [date format](https://pkg.go.dev/time#pkg-constants).
399399
- `concat(strings ...string) string`: Concatenates multiple strings together.
400+
- `unique(key string, arr []JSON) []JSON`: Returns a unique array of JSON objects based on the given key.
400401

401402
The following helper functions provided by Go's `text/template` are available:
402403

0 commit comments

Comments
 (0)