GoLand中的小"a:"for/mean是什么?
What is the little "a:" for/mean in GoLand?
在 JetBrains GoLand IDE 中,当我键入一个基本的 "Hello, World!" 示例时,传递给 fmt.Println()
的字符串前面有一个小的 a:
即由 IDE 添加。它是什么意思,它的目的是什么?
我在文档中找不到答案。
这些被称为 parameter hints, and they are common in JetBrains IDEs. Basically, it's the name of the parameter in the definition of fmt.Println
. See the official docs,其中第一个参数在 Println
的定义中被命名为 a
。
在 JetBrains GoLand IDE 中,当我键入一个基本的 "Hello, World!" 示例时,传递给 fmt.Println()
的字符串前面有一个小的 a:
即由 IDE 添加。它是什么意思,它的目的是什么?
我在文档中找不到答案。
这些被称为 parameter hints, and they are common in JetBrains IDEs. Basically, it's the name of the parameter in the definition of fmt.Println
. See the official docs,其中第一个参数在 Println
的定义中被命名为 a
。