英文: How to Send/Receive Go Unix Socket JSON string using encoder/decoder 问题 我们正在构建一个在每个节点上运行的简单缓存进程。...
在不引起堆栈溢出的情况下,在UnmarshalJSON函数内部调用json.Unmarshal。
英文: Call json.Unmarshal inside UnmarshalJSON function without causing stack overflow 问题 我想在我的Unmarsh...
将SQL结果尽快转换为JSON。
英文: SQL result to JSON as fast as possible 问题 我正在尝试将Go内置的SQL结果转换为JSON。我正在使用goroutines,但遇到了问题。 基本问题: ...
在Go中通过Protocol Buffers v3在oneOf字段中使用结构体
英文: Using structs in oneOf field in Protocol Buffers v3 via Go 问题 尝试将 Protocol Buffers v3 和 Go 结合使用(...
自定义 JSON 编组(Marshaling)
英文: Custom Json Marshaling 问题 我在Go语言中使用第三方的JSON API。它有一些返回键值对数据的端点。例如,这是一个关于状态的JSON示例: { "resul...
JSON and struct composition in Go
英文: JSON and struct composition in Go 问题 我有一个类似于Network -> Serie -> Season -> Episodes的层次结构...
在尝试迭代JSON数组的映射时,出现了Golang接口转换错误。
英文: Golang interface conversion error when trying to iterate through map of json array 问题 我在尝试遍历一些 J...
Golang的JSON路由配置
英文: Golang JSON config for routes 问题 我一直在尝试设置一个JSON配置文件来为我的应用程序设置动态路由。我的想法是,根据使用该服务的人,我将能够设置自己的URL结构...
JSON响应的结构体
英文: Struct for JSON Response 问题 我正在努力弄清楚这个JSON响应的类型结构应该如何设置。 来自CryptoWatch的https://api.cryptowat.ch/...
当编组JSON时,如何内联字段?
英文: How do I inline fields when marshalling JSON? 问题 我有一个名为MonthYear的类型定义,如下所示: type MonthYear time....
285