我使用了https://github.com/swaggo/swag库来自动生成api文档。我的数据类型为[] map [string] string,如何添加示例?
我检查了文档,但现在显示有关[] map [string] string类型的信息。 文档网站:https://github.com/swaggo/swag
type UploadReq struct {
FilesM []map[string]string `form:"files" json:"files" binding:"required" example:"TODO"`
Tag string `form:"tag" json:"tag" binding:"required" example:"TestTag"`
IsPublic bool `form:"is_public" json:"is_pub" binding:"required" example:"true" `
}