13

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.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Dan
  • 4,488
  • 5
  • 48
  • 75

1 Answers1

19

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.

Christian Santos
  • 5,386
  • 1
  • 18
  • 24