go语言的命名规则,关键词表

go语言的命名规则

go语言的变量、常量、函数、类型和包等的命名规则:必须以一个字母或下划线开头,后面跟一些字母、数字或下划线,数量不定,最好不好太长。而且一般采用驼峰式命名,比如HandsomeMan

go语言的大小写区分

go区分大小写,比如:Man和man是两个不同的名称。


go语言关键词表

default func interface var select break
defer case go import map struct
chan goto else package switch const
fallthrough if range type for continue
return true false iota nil make
len cap int及其他 float及其他 unit及其他 bool
byte string error new append copy
close delete complex real imag panic和recover等

全栈后端 / go语法 :













Copyright © 2022-2024 笨鸟工具 x1y1z1.com All Rights Reserved.