英文: Write to existing tcp socket over telnet/ssh in Go on Windows 问题 我正在尝试从另一个控制台/终端应用程序中的Go程序向屏幕写入/...
Golang Mongodb $push 和如果不存在则创建
英文: Golang Mongodb $push and if doesn't exist create 问题 所以基本上我有这个结构体,它需要出现在MongoDB中,我需要编写一个查询,首先...
关于在Golang中对二维数组进行排序的问题
英文: Question about sorting 2 dimensional array in Golang 问题 我对Go语言中的二维数组有一个问题。我不知道为什么我使用的排序方法不起作用,但是...
当包装 testing.T.Errorf() 时显示原始源代码行。
英文: Show original source line when wrapping testing.T.Errorf() 问题 我正在为一个Go模块编写一些测试。其中很大一部分是检查函数是否返回正...
返回由PostgreSQL中的集合组成的返回值。
英文: Return values consisting of the set in Posgresql 问题 我使用https://github.com/kyleconroy/sqlc来生成代码。我...
与MSAL(Azure AD)和GoLang的集成:未定义
英文: Integration with MSAL(Azure AD) and GoLang: undefined 问题 我正在使用Azure AD为公司集成我的Go Gin应用程序,参考链接:htt...
实施幂等键
英文: Implementing idempotency keys 问题 我正在尝试让我的两个 Golang GRPC 端点支持幂等键。我的服务将在自己的集合中将键存储到Mongo中(因为我已经在使用...
如何在Golang语言中使用http.ResponseWriter和http.Request作为参数(单元测试)
英文: How to use http.ResponseWriter and http.request as argument(Unit Testing) with Golang language 问...
在gorm的BeforeSave钩子中如何获取用户信息?
英文: How to get userinfo in gorm hook(BeforeSave)? 问题 我在全局模型中添加了一个字段UpdateBy,用于保存更新该列的人员信息。所以我想使用Hook...
go-git "git submodule add <url> <submod>"
英文: go-git "git submodule add <url> <submod>" 问题 TLDR 我一直在查阅 go-git 的包文档和官方示例,...
2905