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

函数被分配给下划线,这是什么意思

This question already has an answer here:

  • type noRows struct{} var _ Result = noRows{} 2 answers

In go-plinq(https://github.com/fanliao/go-plinq/blob/master/linq.go), line 28, there is a line listed as above:

var _ = fmt.Println //for debugger

What is the use of this statement? Does it make any sense?

</div>

prevent the imported and not used error.

_ is Blank identifier, see here

近期文章

  • 从goroutine调用阻止的DLL函数?
  • gmail-api:邮件内容格式越来越失真(代码Lang:转到)
  • Golang:调试接受输入的代码时的奇怪行为
  • 用于Go中结构的自定义扫描仪
  • 在结构中使用地图的更好方法? 参加编程语言练习1.4
  • Gorm联接未映射到模型
  • Golang OAuth客户端和刷新令牌
  • 在Go中连接Google Calendar API的凭据
  • 将记录器与上下文一起使用的正确方法是什么?
  • Protobuf(gRPC)代码生成器,用于创建无效代码
  • CGO_ENABLED = 0时,安装失败
  • 如何在CoAP服务器程序Golang中添加资源或端点
  • 分流场算法扩展和实现问题
  • 新高郎密码查询的结果
  • 避免在包API中公开反射
  • Golang Delve:单元测试失败时,进入调试器
  • 使用Firebase对Steam OAuth进行身份验证| Golang
  • 使用互斥锁保护Golang结构,仍然可以通过锁定检测到种族
  • 具有不同成分的多个结构
  • golang-> gorm:如何在mysql中将sql.NullInt64用作int(10)?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华