英文: Best practices to use own type in golang. Alians to build type 问题 我想知道在Go语言中何时或是否应该使用自定义类型。当这样做可...
将空字符串插入 SQL 时,可以使用 NULL 值代替。
英文: Golang Insert NULL into sql instead of empty string 问题 我正在尝试使用golang向mysql数据库插入数据。在值为空字符串的情况下,我希...
如何在Golang中将ast.TypeSpec断言为int类型?
英文: How to assert ast.TypeSpec to int type in Golang? 问题 我有以下用于解析Golang文档的代码。"ts"是ast.Type...
Go语言是否容易受到缓冲区溢出攻击?
英文: Is Go vulnerable for buffer overflow 问题 我知道像C#这样的语言在没有使用不安全代码或进行内存管理时不容易受到缓冲区溢出的攻击。但是Go语言是否容易受到缓...
Difference between two time.Time objects
英文: Difference between two time.Time objects 问题 对于两个time.Time对象,你想要以小时/分钟/秒的形式获取它们之间的差异。例如: t1 = 201...
Create variable of type Map[string]interface{} in gRPC protoc buffer golang
英文: Create variable of type Map[string]interface{} in gRPC protoc buffer golang 问题 我正在使用gRPC的Go语言实现来...
mongo aggregation query with mgo driver
英文: mongo aggregation query with mgo driver 问题 我在mongodb中有以下查询: db.devices.aggregate({ $match: {user...
How to get the POST params in revel golang
英文: How to get the POST params in revel golang 问题 如何在revel中获取POST请求的参数?我有以下代码: func (c App) Ndc() re...
在使用Golang进行Mongo查询时出现了多个条件的问题。
英文: Issue in mongo query with multiple conditions by using golang 问题 我有一个如下的文档 - { "_id" :...
Exported and Unexported fields in Go Language
英文: Exported and Unexported fields in Go Language 问题 我有一个在Go中的函数,希望使用gob对返回值进行编码。返回值是一个结构体指针。然而,尽管我理...
11727

