how to save function into mongodb by mgo

41 views
Skip to first unread message

denny

unread,
Feb 4, 2017, 7:01:17 AM2/4/17
to mgo-users
I have a struct Matcher 
type Matcher struct {
Fun       func(interface{}) bool
}

it has a func type field named Fun,how to insert Fun into mongo document?
Reply all
Reply to author
Forward
0 new messages