词法元素 Lexical elements
注释 Comments
Comments serve as program documentation. There are two forms:
注释将被当作程序的文档,它有两种格式
Line comments start with the character sequence // and stop at the end of the line.
General comments start with the character sequence /* and stop with the first subsequent character sequence */.
A comment cannot start inside a rune or string literal, or inside a comment. A general comment containing no newlines acts like a space. Any other comment acts like a newline.
单行注释从字符 // 开始到这一行结束的位置
多行注释从字符 / 开始到字符 / 结束
单行注释前面不能有符号、字符串、内嵌注释。....没看懂