i want to make a function from a text witch contains the function define and body information,anybody can help me?

30 views
Skip to first unread message

denny sun

unread,
Feb 5, 2017, 10:07:37 PM2/5/17
to mgo-users
e.g.
i hava the following string funcstring
funcstring :=`func() string{return "hello"}`

how can i convert funcstring to a function (e.g. called fun1)  witch can be called like fun1() and return "hello"
Reply all
Reply to author
Forward
0 new messages