【发布时间】:2016-02-22 05:08:15
【问题描述】:
我在 Go 中构建了一个具有下一个结构的程序
type A struct {
feature []string
}
type B struct {
title string
other_feature []A
}
我尝试使用 bson 包,但执行后只有标题出现在数据库中。有人有解决办法吗?
【问题讨论】:
-
您能否分享更多代码/请指定您正在使用的 mongo DB 驱动程序