freeCodeCamp/guide/chinese/go/the-zero-value/index.md

30 lines
404 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: The Zero Value
localeTitle: 零价值
---
## 零价值
了解Golang中的一些零值
1. 对于布尔人来说是假的
2. 0表示整数
3. 0.0浮标
4. “”表示字符串
5. 没有
* 指针
* 功能
* 接口
*
* 渠道
* 地图
请尽可能使用简短的申报运营商。
* 使用var代表
* 零值
* 包装范围
### 更多信息