mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-01 23:41:28 -05:00
19 lines
356 B
Markdown
19 lines
356 B
Markdown
|
---
|
||
|
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]
|
||
|
```
|