2017-12-11 01:05
浏览 241

GoLang中的小“ a:”是什么意思?

In the JetBrains GoLand IDE, when I type a basic "Hello, World!" example, there is a small a: in front of the string passed to fmt.Println() that is added by the IDE. What does it mean and what is its purpose?

small a

I could not find the answer in the documentation.

图片转代码服务由CSDN问答提供 功能建议

在JetBrains GoLand IDE中,当我键入基本的“ Hello,World!”时, 例如,IDE传递给传递给 fmt.Println()的字符串前面有一个小的 a:。 这是什么意思,目的是什么?



  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

  • dpbtbcz6650 2017-12-11 01:10

    These are known as 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, where the first parameter is named a in the definition of Println.

    解决 无用
    打赏 举报

相关推荐 更多相似问题