摘要:
一、内置类型 1.值类型 布尔类型 bool 有符号整数型 int(32 or 64) int8 取值范围:-128 to 127 int16 取值范围:-32768 to 32767 int32 取值范围:-2147483648 to 2147483647 int64 取值范围:-92233720 阅读全文
posted @ 2021-07-14 11:46
小曾不听话
阅读(239)
评论(0)
推荐(0)
摘要:
一、命名规则 Go的函数、变量、常量、自定义类型、包(package)的命名方式遵循以下规则: 1)首字符可以是任意的Unicode字符或者下划线 2)剩余字符可以是Unicode字符、下划线、数字 3)字符长度不限 Go有25个关键字 break default func interface se 阅读全文
posted @ 2021-07-14 10:30
小曾不听话
阅读(118)
评论(0)
推荐(0)
摘要:
一、Go基础 1.1 Go特征 1.2 内置类型和函数 阅读全文
posted @ 2021-07-14 10:29
小曾不听话
阅读(37)
评论(0)
推荐(0)