英文: Parsing GeoJson data in golang 问题 我想解析一个包含一个国家地区特征集的JSON文件。 我正在使用这个包 https://github.com/tidwall/...
你好!以下是你要翻译的内容: 如何从 []interface{} 类型中获取值的方法?
英文: golang how i can get value from []interface {} type 问题 我有一个名为result["error_type"]的变量,类...
将colly包的输出文本添加到Golang中的map中。
英文: add colly package output text to map in golang 问题 我正在使用colly包制作一个网络爬虫,它从一个网站上收集ContestName和Conte...
从字节中解码JSON数据并将浮点值更改为整数。
英文: Decoding JSON data from bytes changing float value to int 问题 以下是将字节数组中的JSON数据解组为结构体,并将浮点数类型的值更改为...
如何在golang中将时间字符串解析为time.Time类型?
英文: How to unmarshall time string into time.Time in golang? 问题 我正在使用JOIN、CONCAT、GROUP_CONCAT和JSON_OB...
MongoDB文档在Go的mongo-driver中返回键值对数组。
英文: MongoDB document returns array of key value pair in go mongo-driver 问题 在我们的代码库中,我们有一个合并两个结构体的函数,...
将JSON对象解组成具有键和值的结构体切片。
英文: Unmarshal JSON object into slice of structs with key and value 问题 我正在学习GO,并且被以下问题困扰: 我收到一个JSON字符...
将JSON解组成具有唯一元素的映射切片
英文: Unmarshal JSON into slice of maps with unique elements 问题 我正在将一些JSON文件解组成[]map[string]string{},但...
如何为json.NewDecoder.Decode编写单元测试失败案例?
英文: How to write unit test failure for json.NewDecoder.Decode? 问题 我必须为一个函数编写单元测试,而这个函数使用了json.NewDec...
Is there a way to loop over a json file and get each struct into a separate file — Golang?
英文: Is there a way to loop over a json file and get each struct into a separate file -- Golang? 问题 所...
285