> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xray.cool/llms.txt
> Use this file to discover all available pages before exploring further.

# upper

> `upper`函数主要是用来 string 中的小写字母转换成大写

## 函数原型

`func upper(s1 string) string`

### 参数介绍

| 参数名称 | 参数介绍  |
| ---- | ----- |
| `s1` | 待转换数据 |

## 举例

| 待转换数据  | 转换语句            | 输出结果   |
| ------ | --------------- | ------ |
| `asdf` | `upper("asdf")` | `ASDF` |
