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
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
@@ -83,6 +83,7 @@ func main() {
83
83
| hmac(algorithm, data, secret) string | hmac function that accepts a hashing function type with data and secret |`hmac("sha1", "test", "scrt")`|`8856b111056d946d5c6c92a21b43c233596623c6`|
84
84
| html_escape(input interface{}) string | HTML escapes the given input |`html_escape("<body>test</body>")`|`<body>test</body>`|
85
85
| html_unescape(input interface{}) string | HTML un-escapes the given input |`html_unescape("<body>test</body>")`|`<body>test</body>`|
86
+
| index(slice, index) interface{} | Select item at index from slice or string (zero based) |`index("test",0)`|`t`|
86
87
| join(separator string, elements ...interface{}) string | Joins the given elements using the specified separator |`join("_", 123, "hello", "world")`|`123_hello_world`|
87
88
| json_minify(json) string | Minifies a JSON string by removing unnecessary whitespace |`json_minify("{ \"name\": \"John Doe\", \"foo\": \"bar\" }")`|`{"foo":"bar","name":"John Doe"}`|
88
89
| json_prettify(json) string | Prettifies a JSON string by adding indentation |`json_prettify("{\"foo\":\"bar\",\"name\":\"John Doe\"}")`|`{\n \"foo\": \"bar\",\n \"name\": \"John Doe\"\n}`|
0 commit comments