英文: How to create array json schema for an array string which contains some fixed values and may hav...
使用自定义的MarshalJSON方法来替换Go序列化中的字符。
英文: Replace characters in go serialization by using custom MarshalJSON method 问题 根据我所看到的,我只是在自定义的Mar...
Golang:验证切片项中的结构字段
英文: Golang: Validate Struct Fields in Slice Items 问题 我是你的中文翻译助手,以下是翻译好的内容: 我是Go语言的新手。 Go语言版本:1.17.8 ...
实现使用 JSON 的 io.WriterTo 接口。
英文: Implement io.WriterTo with JSON 问题 我最近发现了这个很酷的接口,io.WriterTo: https://godocs.io/io#WriterTo 我想为一...
How to use golang to convert a multi-line json to one-line json?
英文: How to use golang to convert a multi-line json to one-line json? 问题 你可以使用Go语言将多行的JSON转换为单行的JSON。...
Go – TCP客户端经常错过次要的JSON回复
英文: Go - TCP Client Often Misses Secondary JSON Reply 问题 我正在尝试编写一个TCP客户端,向本地托管的TCP服务器发送一个JSON RPC。服务...
动态键的JSON反序列化
英文: Unmarshalling of JSON with dynamic keys 问题 我有一个场景,其中包含一个具有动态字段集的 JSON,需要将其解组为一个结构体。 const jsonSt...
如何使用GORM创建具有嵌套/解组数据的Many2Many的POST方法?
英文: How to create post method GORM Many2Many with nested/unmarshal data? 问题 我正在使用GoFiber、GORM和MySQL数...
如何使用变量字段名表示 Golang 结构体
英文: How to represent Golang struct with variable field names 问题 如果这个问题已经在其他地方得到解答,请告诉我,但我找不到任何相关信息。 ...
Unmarshalling values in scientific notion to integers in Go
英文: Unmarshalling values in scientific notion to integers in Go 问题 在我的Go代码中,我正在处理从一个端点接收到的JSON数据。这个端...
285