summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/upper.md
blob: 02f4cd578816cbf5de6180bc1d4e5160b892412b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
title: upper
# linktitle: upper
description: Converts all characters in a string to uppercase
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
keywords: []
categories: [functions]
menu:
  docs:
    parent: "functions"
toc:
signature:
  - "upper INPUT"
  - "strings.ToUpper INPUT"
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
draft: false
aliases: []
---

Note that `upper` can be applied in your templates in more than one way:

```go-html-template
{{ upper "BatMan" }} → "BATMAN"
{{ "BatMan" | upper }} → "BATMAN"
```