Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae'

This commit is contained in:
Bjørn Erik Pedersen
2023-12-04 15:24:01 +01:00
810 changed files with 24147 additions and 7766 deletions

View File

@@ -1,27 +1,19 @@
---
title: strings.ToUpper
linkTitle: upper
description: Converts all characters in a string to uppercase
categories: [functions]
description: Returns the given string, converting all characters to uppercase.
categories: []
keywords: []
menu:
docs:
parent: functions
function:
action:
aliases: [upper]
related:
- functions/strings/FirstUpper
- functions/strings/Title
- functions/strings/ToLower
returnType: string
signatures: [strings.ToUpper INPUT]
relatedFunctions:
- strings.FirstUpper
- strings.Title
- strings.ToLower
- strings.ToUpper
aliases: [/functions/upper]
---
Note that `upper` can be applied in your templates in more than one way:
```go-html-template
{{ upper "BatMan" }} → "BATMAN"
{{ "BatMan" | upper }} → "BATMAN"
{{ upper "BatMan" }} → BATMAN
```