英文: Resolve the struct passed to a function in Runtime 问题 我有一个实现了简化的Active Record类似实现的接口,用于我的持久层。 ty...
一个结构体是否实现了其嵌入类型实现的所有接口?
英文: Does a struct implement all the interfaces that one of their embedded type implement? 问题 我有这个例子 ...
GoLang 应用引擎结构名称
英文: GoLang App Engine Struct Name 问题 最近我在使用AppEngine时遇到了一个问题,发现只有Date字段的值被写入了数据存储。我花了一些时间来解决这个问题,最后发...
在Golang结构体字段中保持一个类型
英文: Hold a type in a Golang struct field 问题 我正在寻找一种在自定义结构体中将类型(可能是reflection.Type)作为字段保存的方法。背后的原因是,我...
Array of structure equivalent in golang
英文: Array of structure equivalent in golang 问题 我正在寻找与结构体数组等效的内容,或者与以下Go语言代码等效的内容: type myStruct stru...
在外部函数中访问Go结构体的值
英文: Access values of Go struct in external function 问题 我有以下的函数声明,它可以正常工作并正确打印输出。 import ( "fmt...
将JSON文件解析为Golang中的结构体。
英文: Parsing JSON file into struct golang 问题 我有一个JSON文件: { "AHSS": { "终身学习": &quo...
在Go语言中,是可以同时指定具有变量的结构体和接口的。
英文: Is it possible to specify both a structure with variables and an interface at the same time in g...
将结构体从接口转换回其数据类型,并运行其方法。
英文: Get you struct back to it's data type after passing it as an interface and run it's meth...
Golang JSON解析多次调用Unmarshal函数
英文: Golang JSON Unmarshal multiple calls 问题 我正在编写一个API包装器,其中对API的调用返回一些数据的JSON响应,假设如下: { group_id: 1...
98