我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

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.

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.

近期文章

  • Golang模板中的变量
  • 延长左侧的切片长度
  • 如何在Go中GZIP压缩http请求?
  • 在特定结构中解组Json数据
  • 如何在gRPC中使用预定义的protobuf类型(即“ google / protobuf / timestamp.proto”)
  • 队列上有多重队列
  • 具有联合声明/赋值运算符的全局变量内联赋值和另一个未声明的变量丢失范围?
  • 由fmt.Sprint(e)在Error方法内部产生的无限循环
  • 切片的零值不为nil
  • 使用Go编写iPhone应用程序的库
  • request.Post数组提交后为空
  • Golang无法从request.GetBody()获取正文
  • 日期的字符串日期[重复]
  • Helm _helpers.tpl:在其他模板定义中调用定义的模板
  • Golang:获取切片的类型
  • 我该如何分批处理流程?
  • Golang中的图像处理
  • 在Go中写入客户端UDP套接字
  • 在Golang中解析Cookie字符串
  • 用+替换字符串中的所有空格

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华