> For the complete documentation index, see [llms.txt](https://pshizhsysu.gitbook.io/golang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pshizhsysu.gitbook.io/golang/goyu-yan-shu-ju-lei-xing/string.md).

# string

## 简介

## 声明语义

## 初始化方法

## 赋值操作

## 拼接

## Atoi

可以利用strconv包中的Atoi函数将一个string转换为整型，如下：

```
import strconv

func myFunc() {
    number, err = strconv.Atoi("123")
}
```
