mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:06:41 +08:00
Update 04.5.md (#692)
This commit is contained in:
@@ -100,7 +100,7 @@ Go 也有基于架构的类型,例如:int、uint 和 uintptr。
|
||||
- `int` 和 `uint` 在 32 位操作系统上,它们均使用 32 位(4 个字节),在 64 位操作系统上,它们均使用 64 位(8 个字节)。
|
||||
- `uintptr` 的长度被设定为足够存放一个指针即可。
|
||||
|
||||
Go 语言中没有 float 类型。
|
||||
Go 语言中没有 float 类型。(Go语言中只有 float32 和 float64)没有double类型。
|
||||
|
||||
与操作系统架构无关的类型都有固定的大小,并在类型的名称中就可以看出来:
|
||||
|
||||
|
Reference in New Issue
Block a user