https://godoc.org/upper.io/db/mongo
我想操做mongo如何用这个包更新其中的一个字段,func (self *Result) Update(src interface{}) error
这个函数的传参没有看懂 求解
例如 我有一个type Sqltasks struct {
URL string json:"url" db:",json"
Method string json:"method" db:",json"
Cookie string json:"cookie" db:",json"
Body string json:"data" db:",json"
User_agent string json:"user-agent" db:",json"
Status int json:"status" db:",json"
config string json:"tech" db:",json"
}
只想更新其中一条的status 如何实现