英文: Golang request body keep giving EOF error 问题 我有以下的Go程序,我想要读取通过POST发送的JSON值。我尝试了几种不同的方法,例如首先使用r.B...
从Golang中的多行json文件创建值列表
英文: Create list of values from a json file of multiple lines in Golang 问题 我需要从JSON输入中创建一个值列表。例如,如果输入...
在Golang中解组具有重叠字段的动态JSON数据
英文: Unmarshalling Dynamic JSON Data With Overlapping Fields in Golang 问题 抱歉,如果我提出了一个已经回答过的问题,但我似乎找不到...
make a map with different data types in go for making post request with json data
英文: make a map with different data types in go for making post request with json data 问题 我正在尝试在Go/Go...
编码和解码结构体
英文: Encoding and decoding structs of 问题 我正在尝试对结构体进行编码和解码,我已经搜索了很多相关的问题,但大多数问题都是关于编码基本类型或简单结构体的。我想要编码...
将一个对象转换为对象数组(JSON)在Go中。
英文: Convert an object to an array of objects (JSON) in Go 问题 我正在将一个 JS API 转换为 Go。我使用来自第三方的数据,有时属性是一...
call json keys undeclared in golang
英文: call json keys undeclared in golang 问题 假设我有以下结构体: type LstBQ4422400 struct { Sku string `json:...
更新特定的yaml属性
英文: Update specific yaml property 问题 我正在尝试解析一个 YAML 文件并仅更新一个属性,问题在于该属性的类型是 RAW,当我更新一个字段时,它会更新整个对象。 我...
需要以 [] 这种格式传递空切片,而不是使用 ""。
英文: Need to pass empty slice in [] this format and not as "" 问题 我有一个具有一个名为"body"...
在Go语言中递归迭代结构体数组。
英文: recursively iterate struct array in Go 问题 我需要遍历一个JSON文件中的所有答案选项: { "questions": [ { "...
285