> ## 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.

# rev

> `rev`函数主要是用来 string 反向输出，主要用于验证命令执行

## 函数原型

`func rev(s1 string) string`

### 参数介绍

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

## 举例

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