mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 18:12:08 -05:00
24 lines
469 B
Markdown
24 lines
469 B
Markdown
---
|
|
title: collections.Slice
|
|
description: Creates a slice of all passed arguments.
|
|
categories: []
|
|
keywords: []
|
|
action:
|
|
aliases: [slice]
|
|
returnType: any
|
|
signatures: [collections.Slice ITEM...]
|
|
related:
|
|
- collections.Append
|
|
- collections.Apply
|
|
- collections.Delimit
|
|
- collections.In
|
|
- collections.Reverse
|
|
- collections.Seq
|
|
- collections.Slice
|
|
aliases: [/functions/slice]
|
|
---
|
|
|
|
```go-html-template
|
|
{{ $s := slice "a" "b" "c" }}
|
|
{{ $s }} → [a b c]
|
|
```
|