dsj2222222 2017-12-11 01:05
浏览 286
已采纳

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.

  • 写回答

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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?