go语言关键字分类
            时间:2021-09-24 17:50:38  
            收藏:0  
            阅读:69
        
        
        1、引导程序整体结构的8个关键字
package 定义包名
import	导入包名
const 	常量声明
var		变量声明
func	函数定义
defer 	延迟执行
go 		并发语法糖
return  函数返回
2、声明符合数据结构的4个关键字
struct		定义结构类型
interface	定义接口类型
map			声明或创建map类型
chan 		声明或创建通道类型
3、控制程序结构的13个关键字
if else		
for range break continue	for循环使用的关键字
switch select type case default fallthrough		switch和select语句使用的关键字
goto 		goto跳转语句关键字
原文:https://www.cnblogs.com/ahao214/p/15310795.html
            评论(0)
        
        
        