mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -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]
|
||
|
```
|