blob: 56c068d4b5b3f4b268858f0fd635a7fbb383ae06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
title: collections.Slice
description: Creates a slice of all passed arguments.
categories: []
keywords: []
action:
aliases: [slice]
related:
- functions/collections/Dictionary
returnType: any
signatures: [collections.Slice ITEM...]
aliases: [/functions/slice]
---
```go-html-template
{{ $s := slice "a" "b" "c" }}
{{ $s }} → [a b c]
```
|