2019-10-21 04:22:28 -04:00
|
|
|
---
|
|
|
|
title: lower
|
|
|
|
linktitle: lower
|
|
|
|
description: Converts all characters in the provided string to lowercase.
|
|
|
|
date: 2017-02-01
|
|
|
|
publishdate: 2017-02-01
|
|
|
|
lastmod: 2017-02-01
|
|
|
|
categories: [functions]
|
|
|
|
menu:
|
|
|
|
docs:
|
|
|
|
parent: "functions"
|
|
|
|
keywords: [strings,casing]
|
2022-12-02 03:19:23 -05:00
|
|
|
signature:
|
|
|
|
- "lower INPUT"
|
|
|
|
- "strings.ToLower INPUT"
|
2019-10-21 04:22:28 -04:00
|
|
|
workson: []
|
|
|
|
hugoversion:
|
|
|
|
relatedfuncs: []
|
|
|
|
deprecated: false
|
|
|
|
aliases: []
|
|
|
|
---
|
|
|
|
|
2022-12-02 03:19:23 -05:00
|
|
|
|
|
|
|
Note that `lower` can be applied in your templates in more than one way:
|
|
|
|
|
|
|
|
```go-html-template
|
|
|
|
{{ lower "BatMan" }} → "batman"
|
|
|
|
{{ "BatMan" | lower }} → "batman"
|
2019-10-21 04:22:28 -04:00
|
|
|
```
|